Exception: Ya::API::Direct::Exception
- Inherits:
-
StandardError
- Object
- StandardError
- Ya::API::Direct::Exception
- Defined in:
- lib/ya/api/direct/exceptions.rb
Instance Attribute Summary collapse
-
#error ⇒ Object
readonly
Returns the value of attribute error.
Instance Method Summary collapse
-
#initialize(error) ⇒ Exception
constructor
A new instance of Exception.
- #to_s ⇒ Object
Constructor Details
#initialize(error) ⇒ Exception
Returns a new instance of Exception.
7 8 9 |
# File 'lib/ya/api/direct/exceptions.rb', line 7 def initialize( error ) @error = error end |
Instance Attribute Details
#error ⇒ Object (readonly)
Returns the value of attribute error.
5 6 7 |
# File 'lib/ya/api/direct/exceptions.rb', line 5 def error @error end |
Instance Method Details
#to_s ⇒ Object
11 12 13 |
# File 'lib/ya/api/direct/exceptions.rb', line 11 def to_s [ @error['error_code'], @error['error_string'], @error['error_detail'], @error['request_id'] ].join(' : ') end |