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



258
259
260
261
262
263
# File 'lib/quickbooks-ruby.rb', line 258

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.



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

def code
  @code
end

#detailObject

Returns the value of attribute detail.



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

def detail
  @detail
end

#typeObject

Returns the value of attribute type.



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

def type
  @type
end