Sha256: 582f069f3fe1b335c1b759a899241c0910034d5cf17185667c31feb459371fa3

Contents?: true

Size: 399 Bytes

Versions: 4

Compression:

Stored size: 399 Bytes

Contents

module Moysklad::Entities
  class Feature < Base
    include CommonObject

    tag 'feature'

    attribute :goodUuid,    String

    attribute :archived,    Boolean

    has_many  :attributes,  Moysklad::Entities::Attribute
    has_many  :barcodes,    Moysklad::Entities::Barcode

    def good universe
      cache :good, universe do
        universe.good.find goodUuid
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
moysklad-0.2.1 lib/moysklad/entities/feature.rb
moysklad-0.2.0 lib/moysklad/entities/feature.rb
moysklad-0.1.5 lib/moysklad/entities/feature.rb
moysklad-0.1.4 lib/moysklad/entities/feature.rb