lib/ideal-mollie/order_result.rb in ideal-mollie-0.0.3 vs lib/ideal-mollie/order_result.rb in ideal-mollie-0.0.4

- old
+ new

@@ -16,12 +16,12 @@ # :message => "This iDEAL-order has successfuly been payed for, # and this is the first time you check it.", # :status => "Expired" # }) class OrderResult < Order - # @return [Boolean] Order was payed. - attr_accessor :payed + # @return [Boolean] Order was paid. + attr_accessor :paid # @return [String] The name of the customer. attr_accessor :customer_name # @return [String] The bankaccount number of the customer. attr_accessor :customer_account # @return [String] The city of the customer. @@ -36,10 +36,10 @@ def initialize(values=nil) return if values.nil? super(values) - @payed = values["payed"] == "true" ? true : false if values.has_key?("payed") + @paid = values["payed"] == "true" ? true : false if values.has_key?("payed") @status = values["status"].to_s if values.has_key?("status") if values.has_key?("consumer") consumer = values["consumer"] @customer_name = consumer["consumerName"].to_s if consumer.has_key?("consumerName")