Class: Mollie::Parser

Inherits:
HTTParty::Parser
  • Object
show all
Defined in:
lib/mollie/ideal.rb

Instance Method Summary collapse

Instance Method Details

#htmlObject

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

#xmlObject



15
16
17
# File 'lib/mollie/ideal.rb', line 15

def xml
  result = super['response']
end