Sha256: be416cd3c45e17a46ae25694ff7fbf388aee71219b1c72b1eab9641c3332323b

Contents?: true

Size: 271 Bytes

Versions: 8

Compression:

Stored size: 271 Bytes

Contents

require_relative 'where_filter'
module Moysklad::Resources
  class Subresource < Struct.new(:items)
    include WhereFilter

    def find uuid
      findWhere uuid: uuid
    end

    def all
      items
    end

    private

    def values
      items
    end

  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
moysklad-0.3.0 lib/moysklad/resources/subresource.rb
moysklad-0.2.1 lib/moysklad/resources/subresource.rb
moysklad-0.2.0 lib/moysklad/resources/subresource.rb
moysklad-0.1.5 lib/moysklad/resources/subresource.rb
moysklad-0.1.4 lib/moysklad/resources/subresource.rb
moysklad-0.1.3 lib/moysklad/resources/subresource.rb
moysklad-0.1.2 lib/moysklad/resources/subresource.rb
moysklad-0.1.1 lib/moysklad/resources/subresource.rb