Sha256: a4322ade4c58a99c5f542769e30daf85bbc7496f039d646b9e48d5692c70a911

Contents?: true

Size: 358 Bytes

Versions: 1

Compression:

Stored size: 358 Bytes

Contents

require "skala/adapter/operation/result"
require "skala/loan"
require_relative "../get_user_loans"

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

  attribute :loans, Array[Skala::Loan]

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

Version data entries

1 entries across 1 versions & 1 rubygems

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