Class: Mollie::IdealResponse

Inherits:
Object
  • Object
show all
Defined in:
lib/mollie/ideal_response.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(xml_response) ⇒ IdealResponse

Returns a new instance of IdealResponse.



6
7
8
9
# File 'lib/mollie/ideal_response.rb', line 6

def initialize(xml_response)
  self.payload = xml_response.response
  raise Mollie::IdealException.new(errorcode, errormessage) if error_occured?
end

Instance Attribute Details

#payloadObject

Returns the value of attribute payload.



4
5
6
# File 'lib/mollie/ideal_response.rb', line 4

def payload
  @payload
end