class Paypal::Payment::Response::Item
Attributes
amount[RW]
Public Class Methods
new(attributes = {})
click to toggle source
# File lib/paypal/payment/response/item.rb, line 23 def initialize(attributes = {}) attrs = attributes.dup @@attribute_mapping.each do |key, value| self.send "#{value}=", attrs.delete(key) end @quantity = @quantity.to_i @amount = Common::Amount.new( :total => attrs.delete(:AMT), :tax => attrs.delete(:TAXAMT) ) # warn ignored params attrs.each do |key, value| Paypal.log "Ignored Parameter (#{self.class}): #{key}=#{value}", :warn end end