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.

Public Class Methods

new(options = {}) click to toggle source
# File lib/pagseguro/item.rb, line 22
def initialize(options = {})
  @id = options[:id]
  @description = options[:description]
  @amount = options[:amount]
  @quantity = options[:quantity] || 1
end