Sha256: 25a9a91842c5548f1ee0e855a374e339dfd2c597697bc134e7e34c879666f444

Contents?: true

Size: 406 Bytes

Versions: 1

Compression:

Stored size: 406 Bytes

Contents

require "skala/adapter/operation/result"
require "skala/item"
require_relative "../get_record_holdable_items"

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

  attribute :holdable_items, Array[Skala::Item]

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

Version data entries

1 entries across 1 versions & 1 rubygems

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