Class: PayCertify::Gateway::Response
- Inherits:
-
HashWithIndifferentAccess
- Object
- HashWithIndifferentAccess
- PayCertify::Gateway::Response
- Defined in:
- lib/paycertify/gateway/response.rb
Constant Summary collapse
- APPROVED =
'0'.freeze
Instance Attribute Summary collapse
-
#original_body ⇒ Object
Returns the value of attribute original_body.
-
#status ⇒ Object
Returns the value of attribute status.
Instance Method Summary collapse
-
#initialize(response) ⇒ Response
constructor
A new instance of Response.
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_body ⇒ Object
Returns the value of attribute original_body.
7 8 9 |
# File 'lib/paycertify/gateway/response.rb', line 7 def original_body @original_body end |
#status ⇒ Object
Returns the value of attribute status.
7 8 9 |
# File 'lib/paycertify/gateway/response.rb', line 7 def status @status end |