Class: Async::Matrix::ApplicationService::ErrorResponse
- Inherits:
-
Object
- Object
- Async::Matrix::ApplicationService::ErrorResponse
- Defined in:
- lib/async/matrix/application_service/error_response.rb
Instance Attribute Summary collapse
-
#errcode ⇒ Object
readonly
Returns the value of attribute errcode.
-
#error ⇒ Object
readonly
Returns the value of attribute error.
Instance Method Summary collapse
-
#initialize(data) ⇒ ErrorResponse
constructor
A new instance of ErrorResponse.
Constructor Details
#initialize(data) ⇒ ErrorResponse
Returns a new instance of ErrorResponse.
15 16 17 18 |
# File 'lib/async/matrix/application_service/error_response.rb', line 15 def initialize(data) @errcode = data["errcode"] @error = data["error"] end |
Instance Attribute Details
#errcode ⇒ Object (readonly)
Returns the value of attribute errcode.
13 14 15 |
# File 'lib/async/matrix/application_service/error_response.rb', line 13 def errcode @errcode end |
#error ⇒ Object (readonly)
Returns the value of attribute error.
13 14 15 |
# File 'lib/async/matrix/application_service/error_response.rb', line 13 def error @error end |