class PagSeguro::Item
Attributes
amount[RW]
Set the amount per unit.
description[RW]
Set the product description.
id[RW]
Set the product identifier, such as SKU.
quantity[RW]
Set the quantity. Defaults to 1.
shipping_cost[RW]
Set the shipping cost per unit.
weight[RW]
Set the weight per unit, in grams.
Public Instance Methods
==(other)
click to toggle source
# File lib/pagseguro/item.rb, line 24 def ==(other) [id, description, amount] == [other.id, other.description, other.amount] end
Private Instance Methods
before_initialize()
click to toggle source
# File lib/pagseguro/item.rb, line 29 def before_initialize self.quantity = 1 self.weight = 0 end