Exception: AliExpress::ResponseError
- Inherits:
-
StandardError
- Object
- StandardError
- AliExpress::ResponseError
- Defined in:
- lib/aliexpress/response_error.rb
Instance Attribute Summary collapse
-
#code ⇒ Object
readonly
Returns the value of attribute code.
-
#message ⇒ Object
readonly
Returns the value of attribute message.
-
#response ⇒ Object
readonly
Returns the value of attribute response.
Instance Method Summary collapse
-
#initialize(code:, message:, response:) ⇒ ResponseError
constructor
A new instance of ResponseError.
Constructor Details
#initialize(code:, message:, response:) ⇒ ResponseError
Returns a new instance of ResponseError.
5 6 7 8 9 |
# File 'lib/aliexpress/response_error.rb', line 5 def initialize(code:, message:, response:) @code = code @message = @response = response end |
Instance Attribute Details
#code ⇒ Object (readonly)
Returns the value of attribute code.
3 4 5 |
# File 'lib/aliexpress/response_error.rb', line 3 def code @code end |
#message ⇒ Object (readonly)
Returns the value of attribute message.
3 4 5 |
# File 'lib/aliexpress/response_error.rb', line 3 def @message end |
#response ⇒ Object (readonly)
Returns the value of attribute response.
3 4 5 |
# File 'lib/aliexpress/response_error.rb', line 3 def response @response end |