Exception: Wot::Api::Error
- Inherits:
-
StandardError
- Object
- StandardError
- Wot::Api::Error
- Defined in:
- lib/wot/api/error.rb
Instance Attribute Summary collapse
-
#code ⇒ Object
Returns the value of attribute code.
-
#field ⇒ Object
Returns the value of attribute field.
-
#message ⇒ Object
Returns the value of attribute message.
-
#value ⇒ Object
Returns the value of attribute value.
Instance Method Summary collapse
-
#initialize(options) ⇒ Error
constructor
A new instance of Error.
Constructor Details
#initialize(options) ⇒ Error
Returns a new instance of Error.
5 6 7 8 9 10 11 |
# File 'lib/wot/api/error.rb', line 5 def initialize() super [:message] @field = [:field] = [:message] @code = [:code] @value = [:value] end |
Instance Attribute Details
#code ⇒ Object
Returns the value of attribute code.
4 5 6 |
# File 'lib/wot/api/error.rb', line 4 def code @code end |
#field ⇒ Object
Returns the value of attribute field.
4 5 6 |
# File 'lib/wot/api/error.rb', line 4 def field @field end |
#message ⇒ Object
Returns the value of attribute message.
4 5 6 |
# File 'lib/wot/api/error.rb', line 4 def end |
#value ⇒ Object
Returns the value of attribute value.
4 5 6 |
# File 'lib/wot/api/error.rb', line 4 def value @value end |