Class: WorldpayCnp::Response
- Inherits:
-
Object
- Object
- WorldpayCnp::Response
- Extended by:
- Forwardable
- Defined in:
- lib/worldpay_cnp/response.rb
Instance Attribute Summary collapse
-
#raw_response ⇒ Object
readonly
Returns the value of attribute raw_response.
-
#status_code ⇒ Object
readonly
Returns the value of attribute status_code.
Instance Method Summary collapse
-
#initialize(data, status_code, raw_response) ⇒ Response
constructor
A new instance of Response.
Constructor Details
#initialize(data, status_code, raw_response) ⇒ Response
Returns a new instance of Response.
9 10 11 12 13 |
# File 'lib/worldpay_cnp/response.rb', line 9 def initialize(data, status_code, raw_response) @data = data || {} @status_code = status_code.to_i @raw_response = raw_response end |
Instance Attribute Details
#raw_response ⇒ Object (readonly)
Returns the value of attribute raw_response.
5 6 7 |
# File 'lib/worldpay_cnp/response.rb', line 5 def raw_response @raw_response end |
#status_code ⇒ Object (readonly)
Returns the value of attribute status_code.
5 6 7 |
# File 'lib/worldpay_cnp/response.rb', line 5 def status_code @status_code end |