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