Sha256: daec34ebbc48941ba9f9cc29df0bbf37d91cf9f1061542ed0d582e4bf918e722

Contents?: true

Size: 362 Bytes

Versions: 1

Compression:

Stored size: 362 Bytes

Contents

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

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

  attribute :items, Array[Skala::Item]

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