class PagSeguro::Transaction::Items

Attributes

count[R]

Public Class Methods

new(store, count) click to toggle source
# File lib/pagseguro/transaction/items.rb, line 6
def initialize(store, count)
  @store = store
  @count = count
end

Public Instance Methods

items() click to toggle source
# File lib/pagseguro/transaction/items.rb, line 11
def items
  @store['item'].map do |i|
    Item.new(i['id'], i['description'], i['quantity'], i['amount'])
  end
end