Class: DynamicPDFApi::Response
- Inherits:
-
Object
- Object
- DynamicPDFApi::Response
- Defined in:
- lib/ruby_client/Response.rb
Overview
Represents the base class for response.
Direct Known Subclasses
Instance Attribute Summary collapse
-
#error_id ⇒ Object
Gets the error id.
-
#error_json ⇒ Object
Gets the error json.
-
#error_message ⇒ Object
Gets the error message.
-
#is_successful ⇒ Object
Gets the boolean, indicating the response’s status.
-
#status_code ⇒ Object
Gets the status code.
Instance Method Summary collapse
-
#initialize ⇒ Response
constructor
A new instance of Response.
Constructor Details
#initialize ⇒ Response
Returns a new instance of Response.
6 7 8 9 10 11 12 |
# File 'lib/ruby_client/Response.rb', line 6 def initialize @_is_successful = false @_error_message = nil @_error_id = nil @_status_code = nil @_error_json = nil end |
Instance Attribute Details
#error_id ⇒ Object
Gets the error id.
27 28 29 |
# File 'lib/ruby_client/Response.rb', line 27 def error_id @error_id end |
#error_json ⇒ Object
Gets the error json.
37 38 39 |
# File 'lib/ruby_client/Response.rb', line 37 def error_json @error_json end |
#error_message ⇒ Object
Gets the error message.
22 23 24 |
# File 'lib/ruby_client/Response.rb', line 22 def @error_message end |
#is_successful ⇒ Object
Gets the boolean, indicating the response’s status.
17 18 19 |
# File 'lib/ruby_client/Response.rb', line 17 def is_successful @is_successful end |
#status_code ⇒ Object
Gets the status code.
32 33 34 |
# File 'lib/ruby_client/Response.rb', line 32 def status_code @status_code end |