Class: ActiveMerchant::Billing::PaymillGateway::ResponseParser
- Inherits:
-
Object
- Object
- ActiveMerchant::Billing::PaymillGateway::ResponseParser
- Defined in:
- lib/active_merchant/billing/gateways/paymill.rb
Instance Method Summary collapse
- #generate_response ⇒ Object
-
#initialize(raw_response = "", options = {}) ⇒ ResponseParser
constructor
A new instance of ResponseParser.
Constructor Details
#initialize(raw_response = "", options = {}) ⇒ ResponseParser
Returns a new instance of ResponseParser.
231 232 233 234 |
# File 'lib/active_merchant/billing/gateways/paymill.rb', line 231 def initialize(raw_response="", ={}) @raw_response = raw_response = end |
Instance Method Details
#generate_response ⇒ Object
236 237 238 239 240 241 242 243 244 245 |
# File 'lib/active_merchant/billing/gateways/paymill.rb', line 236 def generate_response parse_response if parsed['error'] handle_response_parse_error else handle_response_correct_parsing end Response.new(succeeded, , parsed, ) end |