Class: Onlyoffice::DocsIntegrationSdk::DocumentServer::Client::Response
- Inherits:
-
Object
- Object
- Onlyoffice::DocsIntegrationSdk::DocumentServer::Client::Response
- Extended by:
- T::Sig
- Defined in:
- lib/onlyoffice/docs_integration_sdk/document_server/client/response.rb
Overview
Response is a class that represents the response from the Document Server.
Instance Attribute Summary collapse
-
#error ⇒ Object?
readonly
error is the error that occurred when sending the request.
-
#request ⇒ Net::HTTPRequest
readonly
request is the request that was sent to the Document Server.
-
#response ⇒ Net::HTTPResponse
readonly
response is the response from the Document Server.
Instance Method Summary collapse
-
#initialize(request:, response:, error: nil) ⇒ void
constructor
initialize initializes a new Response instance.
Constructor Details
#initialize(request:, response:, error: nil) ⇒ void
initialize initializes a new Response instance.
64 65 66 67 68 |
# File 'lib/onlyoffice/docs_integration_sdk/document_server/client/response.rb', line 64 def initialize(request:, response:, error: nil) @request = request @response = response @error = error end |
Instance Attribute Details
#error ⇒ Object? (readonly)
error is the error that occurred when sending the request.
50 51 52 |
# File 'lib/onlyoffice/docs_integration_sdk/document_server/client/response.rb', line 50 def error @error end |
#request ⇒ Net::HTTPRequest (readonly)
request is the request that was sent to the Document Server.
38 39 40 |
# File 'lib/onlyoffice/docs_integration_sdk/document_server/client/response.rb', line 38 def request @request end |
#response ⇒ Net::HTTPResponse (readonly)
response is the response from the Document Server.
44 45 46 |
# File 'lib/onlyoffice/docs_integration_sdk/document_server/client/response.rb', line 44 def response @response end |