Sha256: 4b91bdfb179c7cfcfbe08fbf17fad84237ef26d559e8d2d09513776aba359ceb
Contents?: true
Size: 948 Bytes
Versions: 2
Compression:
Stored size: 948 Bytes
Contents
module Braintree class TransactionLineItem include BaseModule attr_reader :quantity attr_reader :name attr_reader :description attr_reader :kind attr_reader :unit_amount attr_reader :unit_tax_amount attr_reader :unit_of_measure attr_reader :discount_amount attr_reader :total_amount attr_reader :product_code attr_reader :commodity_code attr_reader :url def initialize(gateway, attributes) # :nodoc: @gateway = gateway set_instance_variables_from_hash(attributes) @quantity = Util.to_big_decimal(quantity) @unit_amount = Util.to_big_decimal(unit_amount) @unit_tax_amount = Util.to_big_decimal(unit_tax_amount) @discount_amount = Util.to_big_decimal(discount_amount) @total_amount = Util.to_big_decimal(total_amount) end class << self protected :new def _new(*args) # :nodoc: self.new *args end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
braintree-2.82.0 | lib/braintree/transaction_line_item.rb |
braintree-2.81.0 | lib/braintree/transaction_line_item.rb |