Exception: Taobao::ApiError
- Inherits:
-
StandardError
- Object
- StandardError
- Taobao::ApiError
- Defined in:
- lib/taobao/exceptions/api_error.rb
Instance Method Summary collapse
-
#initialize(response) ⇒ ApiError
constructor
A new instance of ApiError.
- #to_s ⇒ Object
Constructor Details
#initialize(response) ⇒ ApiError
Returns a new instance of ApiError.
2 3 4 |
# File 'lib/taobao/exceptions/api_error.rb', line 2 def initialize(response) @msg = response[:error_response][:msg] end |
Instance Method Details
#to_s ⇒ Object
6 7 8 |
# File 'lib/taobao/exceptions/api_error.rb', line 6 def to_s @msg end |