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.
259 260 261 262 263 264 |
# File 'lib/quickbooks-ruby.rb', line 259 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.
257 258 259 |
# File 'lib/quickbooks-ruby.rb', line 257 def code @code end |
#detail ⇒ Object
Returns the value of attribute detail.
257 258 259 |
# File 'lib/quickbooks-ruby.rb', line 257 def detail @detail end |
#type ⇒ Object
Returns the value of attribute type.
257 258 259 |
# File 'lib/quickbooks-ruby.rb', line 257 def type @type end |