Sha256: fdd76ef2c31e7038fd2565bdc489dd80e54808aaecf8d4ed7a611725ad25fd9c

Contents?: true

Size: 407 Bytes

Versions: 1

Compression:

Stored size: 407 Bytes

Contents

require "skala/adapter/operation/result"
require "skala/transaction"
require_relative "../get_user_transactions"

class Skala::Adapter::GetUserTransactions::Result < Skala::Adapter::Operation::Result
  include Enumerable
  include Virtus.model

  attribute :transactions, Array[Skala::Transaction]

  def each
    block_given? ? transactions.each { |_element| yield _element } : transactions.each
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
skala-1.1.0 lib/skala/adapter/get_user_transactions/result.rb