Exception: Quickbooks::AuthorizationFailure
- Defined in:
- lib/quickbooks-ruby.rb
Instance Attribute Summary collapse
-
#code ⇒ Object
Returns the value of attribute code.
-
#detail ⇒ Object
Returns the value of attribute detail.
-
#type ⇒ Object
Returns the value of attribute type.
Instance Method Summary collapse
-
#initialize(error_hash = {}) ⇒ AuthorizationFailure
constructor
A new instance of AuthorizationFailure.
Constructor Details
#initialize(error_hash = {}) ⇒ AuthorizationFailure
Returns a new instance of AuthorizationFailure.
261 262 263 264 265 266 |
# File 'lib/quickbooks-ruby.rb', line 261 def initialize(error_hash = {}) @code = error_hash[:code] @detail = error_hash[:detail] @type = error_hash[:type] super(error_hash[:message]) end |
Instance Attribute Details
#code ⇒ Object
Returns the value of attribute code.
259 260 261 |
# File 'lib/quickbooks-ruby.rb', line 259 def code @code end |
#detail ⇒ Object
Returns the value of attribute detail.
259 260 261 |
# File 'lib/quickbooks-ruby.rb', line 259 def detail @detail end |
#type ⇒ Object
Returns the value of attribute type.
259 260 261 |
# File 'lib/quickbooks-ruby.rb', line 259 def type @type end |