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.



249
250
251
252
253
254
# File 'lib/quickbooks-ruby.rb', line 249

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.



247
248
249
# File 'lib/quickbooks-ruby.rb', line 247

def code
  @code
end

#detailObject

Returns the value of attribute detail.



247
248
249
# File 'lib/quickbooks-ruby.rb', line 247

def detail
  @detail
end

#typeObject

Returns the value of attribute type.



247
248
249
# File 'lib/quickbooks-ruby.rb', line 247

def type
  @type
end