Sha256: c6570bf87b7b33a2a4bb1bae8a3ffe0c5ac6ab25f0f328130ce0ec34459b8b55

Contents?: true

Size: 956 Bytes

Versions: 4

Compression:

Stored size: 956 Bytes

Contents

# https://online.moysklad.ru/exchange/rest/ms/xml/CustomEntityMetadata/list
#
# Пользовательский справочник
#
module Moysklad::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

4 entries across 4 versions & 1 rubygems

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