Class: MollieNLIDeal::PaymentResult

Inherits:
PaymentRequest show all
Defined in:
lib/mollienl-ideal/payment_result.rb

Instance Attribute Summary collapse

Attributes inherited from PaymentRequest

#amount, #currency, #message, #transaction_id, #url

Instance Method Summary collapse

Constructor Details

#initialize(values) ⇒ PaymentResult

Returns a new instance of PaymentResult.



5
6
7
8
9
10
11
12
13
14
15
16
# File 'lib/mollienl-ideal/payment_result.rb', line 5

def initialize(values)
  return if values.nil?

  super(values)

  if values.kind_of?(REXML::Element)
    @payed = ("true" === values.get_text("payed").to_s)
    @consumer_name = values.get_text("consumer/consumerName").to_s
    @consumer_account = values.get_text("consumer/consumerAccount").to_s
    @consumer_city = values.get_text("consumer/consumerCity").to_s
  end
end

Instance Attribute Details

#consumer_accountObject

Returns the value of attribute consumer_account.



3
4
5
# File 'lib/mollienl-ideal/payment_result.rb', line 3

def 
  @consumer_account
end

#consumer_cityObject

Returns the value of attribute consumer_city.



3
4
5
# File 'lib/mollienl-ideal/payment_result.rb', line 3

def consumer_city
  @consumer_city
end

#consumer_nameObject

Returns the value of attribute consumer_name.



3
4
5
# File 'lib/mollienl-ideal/payment_result.rb', line 3

def consumer_name
  @consumer_name
end

#payedObject

Returns the value of attribute payed.



3
4
5
# File 'lib/mollienl-ideal/payment_result.rb', line 3

def payed
  @payed
end