Class: Sisow::ErrorResponse
- Inherits:
-
Object
- Object
- Sisow::ErrorResponse
- Defined in:
- lib/sisow/error_response.rb
Instance Attribute Summary collapse
-
#code ⇒ Object
Returns the value of attribute code.
-
#message ⇒ Object
Returns the value of attribute message.
Instance Method Summary collapse
-
#initialize(response) ⇒ ErrorResponse
constructor
A new instance of ErrorResponse.
Constructor Details
#initialize(response) ⇒ ErrorResponse
Returns a new instance of ErrorResponse.
5 6 7 8 |
# File 'lib/sisow/error_response.rb', line 5 def initialize(response) @code = response.errorresponse.error.errorcode @message = response.errorresponse.error. end |
Instance Attribute Details
#code ⇒ Object
Returns the value of attribute code.
3 4 5 |
# File 'lib/sisow/error_response.rb', line 3 def code @code end |
#message ⇒ Object
Returns the value of attribute message.
3 4 5 |
# File 'lib/sisow/error_response.rb', line 3 def @message end |