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.



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

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.



204
205
206
# File 'lib/active_merchant/billing/gateways/bpoint.rb', line 204

def gateway
  @gateway
end

#paramsObject (readonly)

Returns the value of attribute params.



204
205
206
# File 'lib/active_merchant/billing/gateways/bpoint.rb', line 204

def params
  @params
end

#xml_docObject (readonly)

Returns the value of attribute xml_doc.



204
205
206
# File 'lib/active_merchant/billing/gateways/bpoint.rb', line 204

def xml_doc
  @xml_doc
end

Instance Method Details

#to_responseObject



212
213
214
# File 'lib/active_merchant/billing/gateways/bpoint.rb', line 212

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