Class: Kentaa::Api::Resources::Error
- Inherits:
-
Object
- Object
- Kentaa::Api::Resources::Error
- Defined in:
- lib/kentaa/api/resources/error.rb
Instance Attribute Summary collapse
-
#data ⇒ Object
readonly
Returns the value of attribute data.
Instance Method Summary collapse
- #error ⇒ Object
- #field ⇒ Object
-
#initialize(data) ⇒ Error
constructor
A new instance of Error.
Constructor Details
#initialize(data) ⇒ Error
Returns a new instance of Error.
9 10 11 |
# File 'lib/kentaa/api/resources/error.rb', line 9 def initialize(data) @data = data end |
Instance Attribute Details
#data ⇒ Object (readonly)
Returns the value of attribute data.
7 8 9 |
# File 'lib/kentaa/api/resources/error.rb', line 7 def data @data end |
Instance Method Details
#error ⇒ Object
17 18 19 |
# File 'lib/kentaa/api/resources/error.rb', line 17 def error data[:error] end |
#field ⇒ Object
13 14 15 |
# File 'lib/kentaa/api/resources/error.rb', line 13 def field data[:field] end |