class AuthorizeNet::LineItem
Models an line item.
Attributes
description[RW]
id[RW]
name[RW]
price[RW]
quantity[RW]
taxable[RW]
Public Instance Methods
to_hash()
click to toggle source
# File lib/authorize_net/line_item.rb, line 10 def to_hash hash = { :line_item_id => @id, :line_item_name => @name, :line_item_description => @description, :line_item_quantity => @quantity, :line_item_unit_price => @price, :line_item_taxable => @taxable } hash.delete_if {|k, v| v.nil?} hash end