Exception: Quickbooks::AuthorizationFailure

Inherits:
Error
  • Object
show all
Defined in:
lib/quickbooks-ruby.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#codeObject

Returns the value of attribute code.



257
258
259
# File 'lib/quickbooks-ruby.rb', line 257

def code
  @code
end

#detailObject

Returns the value of attribute detail.



257
258
259
# File 'lib/quickbooks-ruby.rb', line 257

def detail
  @detail
end

#typeObject

Returns the value of attribute type.



257
258
259
# File 'lib/quickbooks-ruby.rb', line 257

def type
  @type
end