Sha256: 033586b5bf7251cd81409a5ea3086180ce008ff83a9a2c7e078db0114f7a5062

Contents?: true

Size: 466 Bytes

Versions: 1

Compression:

Stored size: 466 Bytes

Contents

module AmoCRM::Entities
  class Feature < Base
    include CommonObject

    tag 'feature'

    attribute :goodUuid,    String

    attribute :archived,    Boolean
    attribute :isDefault,   Boolean

    element   :shared,      Boolean

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

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

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
amo_crm-0.2.2 lib/amo_crm/entities/feature.rb