Class: Doconomy::Api::Error
Instance Attribute Summary collapse
-
#description ⇒ Object
Returns the value of attribute description.
-
#reason_code ⇒ Object
Returns the value of attribute reason_code.
-
#source ⇒ Object
Returns the value of attribute source.
Attributes inherited from Base
Instance Method Summary collapse
-
#initialize(attributes = {}) ⇒ Error
constructor
A new instance of Error.
Methods inherited from Base
Constructor Details
#initialize(attributes = {}) ⇒ Error
Returns a new instance of Error.
8 9 10 11 12 13 |
# File 'lib/doconomy/api/error.rb', line 8 def initialize(attributes = {}) @attributes = attributes.deep_symbolize_keys @source = attributes[:source] @reason_code = attributes[:reason_code] || attributes[:reasonCode] @description = attributes[:description] end |
Instance Attribute Details
#description ⇒ Object
Returns the value of attribute description.
6 7 8 |
# File 'lib/doconomy/api/error.rb', line 6 def description @description end |
#reason_code ⇒ Object
Returns the value of attribute reason_code.
6 7 8 |
# File 'lib/doconomy/api/error.rb', line 6 def reason_code @reason_code end |
#source ⇒ Object
Returns the value of attribute source.
6 7 8 |
# File 'lib/doconomy/api/error.rb', line 6 def source @source end |