Method: WorldpayCnp::Response#initialize

Defined in:
lib/worldpay_cnp/response.rb

#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