class ProcessOut::GatewayRequest
Attributes
body[RW]
gateway_configuration_id[RW]
headers[RW]
method[RW]
url[RW]
Public Class Methods
new(gateway_configuration_id, data = {})
click to toggle source
# 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
Public Instance Methods
to_s()
click to toggle source
# File lib/processout/gateway_request.rb, line 16 def to_s "gway_req_" + Base64.strict_encode64(JSON.generate({ gateway_configuration_id: self.gateway_configuration_id, method: self.method, url: self.url, headers: self.headers, body: self.body })) end