Exception: Yandex::Direct::ApiException
- Inherits:
-
StandardError
- Object
- StandardError
- Yandex::Direct::ApiException
- Defined in:
- lib/yandex_direct/api.rb
Instance Attribute Summary collapse
-
#code ⇒ Object
readonly
Returns the value of attribute code.
-
#details ⇒ Object
readonly
Returns the value of attribute details.
-
#message ⇒ Object
readonly
Returns the value of attribute message.
Instance Method Summary collapse
-
#initialize(message, code, details) ⇒ ApiException
constructor
A new instance of ApiException.
- #to_s ⇒ Object
Constructor Details
#initialize(message, code, details) ⇒ ApiException
Returns a new instance of ApiException.
10 11 12 |
# File 'lib/yandex_direct/api.rb', line 10 def initialize(, code, details) @message, @code, @details = , code, details end |
Instance Attribute Details
#code ⇒ Object (readonly)
Returns the value of attribute code.
8 9 10 |
# File 'lib/yandex_direct/api.rb', line 8 def code @code end |
#details ⇒ Object (readonly)
Returns the value of attribute details.
8 9 10 |
# File 'lib/yandex_direct/api.rb', line 8 def details @details end |
#message ⇒ Object (readonly)
Returns the value of attribute message.
8 9 10 |
# File 'lib/yandex_direct/api.rb', line 8 def @message end |
Instance Method Details
#to_s ⇒ Object
14 15 16 |
# File 'lib/yandex_direct/api.rb', line 14 def to_s "#{code}: #{}" end |