Class: WorldpayCnp::Response

Inherits:
Object
  • Object
show all
Extended by:
Forwardable
Defined in:
lib/worldpay_cnp/response.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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_responseObject (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_codeObject (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