Class: ActiveMerchant::Billing::BpointGateway::BPointResponse

Inherits:
Object
  • Object
show all
Defined in:
lib/active_merchant/billing/gateways/bpoint.rb

Direct Known Subclasses

AddTokenResponse, ProcessPaymentResponse

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(xml_doc, gateway) ⇒ BPointResponse

Returns a new instance of BPointResponse.



208
209
210
211
212
# File 'lib/active_merchant/billing/gateways/bpoint.rb', line 208

def initialize(xml_doc, gateway)
  @xml_doc = xml_doc
  @gateway = gateway
  @params = init_params
end

Instance Attribute Details

#gatewayObject (readonly)

Returns the value of attribute gateway.



206
207
208
# File 'lib/active_merchant/billing/gateways/bpoint.rb', line 206

def gateway
  @gateway
end

#paramsObject (readonly)

Returns the value of attribute params.



206
207
208
# File 'lib/active_merchant/billing/gateways/bpoint.rb', line 206

def params
  @params
end

#xml_docObject (readonly)

Returns the value of attribute xml_doc.



206
207
208
# File 'lib/active_merchant/billing/gateways/bpoint.rb', line 206

def xml_doc
  @xml_doc
end

Instance Method Details

#to_responseObject



214
215
216
# File 'lib/active_merchant/billing/gateways/bpoint.rb', line 214

def to_response
  Response.new(success?, message, params, options)
end