Method: ProcessOut::GatewayRequest#initialize

Defined in:
lib/processout/gateway_request.rb

#initialize(gateway_configuration_id, data = {}) ⇒ GatewayRequest

Returns a new instance of GatewayRequest.



8
9
10
11
12
13
14
# File 'lib/processout/gateway_request.rb', line 8

def initialize(gateway_configuration_id, data = {})
  self.gateway_configuration_id = gateway_configuration_id
  self.method = data.fetch(:method, nil)
  self.url = data.fetch(:url, nil)
  self.headers = data.fetch(:headers, {})
  self.body = data.fetch(:body, nil)
end