Class: MollieNLIDeal::PaymentResult
- Inherits:
-
PaymentRequest
- Object
- PaymentRequest
- MollieNLIDeal::PaymentResult
- Defined in:
- lib/mollienl-ideal/payment_result.rb
Instance Attribute Summary collapse
-
#consumer_account ⇒ Object
Returns the value of attribute consumer_account.
-
#consumer_city ⇒ Object
Returns the value of attribute consumer_city.
-
#consumer_name ⇒ Object
Returns the value of attribute consumer_name.
-
#payed ⇒ Object
Returns the value of attribute payed.
Attributes inherited from PaymentRequest
#amount, #currency, #message, #transaction_id, #url
Instance Method Summary collapse
-
#initialize(values) ⇒ PaymentResult
constructor
A new instance of PaymentResult.
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_account ⇒ Object
Returns the value of attribute consumer_account.
3 4 5 |
# File 'lib/mollienl-ideal/payment_result.rb', line 3 def consumer_account @consumer_account end |
#consumer_city ⇒ Object
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_name ⇒ Object
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 |
#payed ⇒ Object
Returns the value of attribute payed.
3 4 5 |
# File 'lib/mollienl-ideal/payment_result.rb', line 3 def payed @payed end |