Class: PayCertify::Gateway::Response

Inherits:
HashWithIndifferentAccess
  • Object
show all
Defined in:
lib/paycertify/gateway/response.rb

Constant Summary collapse

APPROVED =
'0'.freeze

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(response) ⇒ Response



9
10
11
12
13
14
# File 'lib/paycertify/gateway/response.rb', line 9

def initialize(response)
  self.status = response.status
  self.original_body = Hash.from_xml(response.body)

  super(convert_hash_keys(original_body))
end

Instance Attribute Details

#original_bodyObject

Returns the value of attribute original_body.



7
8
9
# File 'lib/paycertify/gateway/response.rb', line 7

def original_body
  @original_body
end

#statusObject

Returns the value of attribute status.



7
8
9
# File 'lib/paycertify/gateway/response.rb', line 7

def status
  @status
end