Class: ActiveMerchant::Billing::PaymillGateway::ResponseParser
- Inherits:
-
Object
- Object
- ActiveMerchant::Billing::PaymillGateway::ResponseParser
- Defined in:
- lib/active_merchant/billing/gateways/paymill.rb
Instance Attribute Summary collapse
-
#message ⇒ Object
readonly
Returns the value of attribute message.
-
#options ⇒ Object
readonly
Returns the value of attribute options.
-
#parsed ⇒ Object
readonly
Returns the value of attribute parsed.
-
#raw_response ⇒ Object
readonly
Returns the value of attribute raw_response.
-
#succeeded ⇒ Object
readonly
Returns the value of attribute succeeded.
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.
310 311 312 313 |
# File 'lib/active_merchant/billing/gateways/paymill.rb', line 310 def initialize(raw_response="", ={}) @raw_response = raw_response = end |
Instance Attribute Details
#message ⇒ Object (readonly)
Returns the value of attribute message.
308 309 310 |
# File 'lib/active_merchant/billing/gateways/paymill.rb', line 308 def end |
#options ⇒ Object (readonly)
Returns the value of attribute options.
308 309 310 |
# File 'lib/active_merchant/billing/gateways/paymill.rb', line 308 def end |
#parsed ⇒ Object (readonly)
Returns the value of attribute parsed.
308 309 310 |
# File 'lib/active_merchant/billing/gateways/paymill.rb', line 308 def parsed @parsed end |
#raw_response ⇒ Object (readonly)
Returns the value of attribute raw_response.
308 309 310 |
# File 'lib/active_merchant/billing/gateways/paymill.rb', line 308 def raw_response @raw_response end |
#succeeded ⇒ Object (readonly)
Returns the value of attribute succeeded.
308 309 310 |
# File 'lib/active_merchant/billing/gateways/paymill.rb', line 308 def succeeded @succeeded end |
Instance Method Details
#generate_response ⇒ Object
315 316 317 318 319 320 321 322 323 324 |
# File 'lib/active_merchant/billing/gateways/paymill.rb', line 315 def generate_response parse_response if parsed['error'] handle_response_parse_error else handle_response_correct_parsing end Response.new(succeeded, , parsed, ) end |