Sha256: 30036f19ee687744eea048bb1f36ac955a0d00f2300c9483f20b71a1a83e7a87

Contents?: true

Size: 392 Bytes

Versions: 1

Compression:

Stored size: 392 Bytes

Contents

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

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

  attribute :former_loans, Array[Skala::Loan]

  def each
    block_given? ? former_loans.each { |_element| yield _element } : former_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_former_loans/result.rb