Sha256: 8d4463d6ac8bbcad8806655d9ee04bd18aae7e236526648071a06b37926e170e

Contents?: true

Size: 954 Bytes

Versions: 1

Compression:

Stored size: 954 Bytes

Contents

# https://online.moysklad.ru/exchange/rest/ms/xml/CustomEntityMetadata/list
#
# Пользовательский справочник
#
module AmoCRM::Entities
  class CustomEntityMetadata < Base
    include CommonObject
    include XmlFix

    tag 'customEntityMetadata'

    attribute :uniqueCode,     Boolean 
    attribute :codeValueType,  Integer
    attribute :independentNameGenerator, Boolean

    attribute :partialReserve, Boolean

    attribute :editOnlyByAuthor, Boolean

    attribute :noEditFromOtherPlaceSource, Boolean

    attribute :noApplicableFromOtherPlaceSource, Boolean

    attribute :noEditFromOtherPlaceTarget, Boolean

    attribute :noApplicableFromOtherPlaceTarget, Boolean

    # Список перечисляемых значений данного справочника
    #
    # @return [Array[CustomEntity]]
    def entities universe
      universe.custom_entities.where entityMetadataUuid: uuid
    end

  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

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