Class: Mollie::Parser
- Inherits:
-
HTTParty::Parser
- Object
- HTTParty::Parser
- Mollie::Parser
- Defined in:
- lib/mollie/ideal.rb
Instance Method Summary collapse
-
#html ⇒ Object
Some responses (mostly error-responses) have content-type ‘text/html’, but an xml-body; therefor handle all html-responses initially as xml.
- #xml ⇒ Object
Instance Method Details
#html ⇒ Object
Some responses (mostly error-responses) have content-type ‘text/html’, but an xml-body; therefor handle all html-responses initially as xml.
21 22 23 24 25 |
# File 'lib/mollie/ideal.rb', line 21 def html xml rescue MultiXml::ParseError, StandardError super end |
#xml ⇒ Object
15 16 17 |
# File 'lib/mollie/ideal.rb', line 15 def xml result = super['response'] end |