Exception: QuickPay::API::Error

Inherits:
StandardError
  • Object
show all
Defined in:
lib/quickpay/api/errors/quickpay_error.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(code, status, body) ⇒ Error

Returns a new instance of Error.



6
7
8
9
10
# File 'lib/quickpay/api/errors/quickpay_error.rb', line 6

def initialize(code, status, body)
  @code   = code
  @status = status
  @body   = body
end

Instance Attribute Details

#bodyObject (readonly)

Returns the value of attribute body.



4
5
6
# File 'lib/quickpay/api/errors/quickpay_error.rb', line 4

def body
  @body
end

#codeObject (readonly)

Returns the value of attribute code.



4
5
6
# File 'lib/quickpay/api/errors/quickpay_error.rb', line 4

def code
  @code
end

#statusObject (readonly)

Returns the value of attribute status.



4
5
6
# File 'lib/quickpay/api/errors/quickpay_error.rb', line 4

def status
  @status
end