Sha256: b0545cb964140e38f69e1190c57bf1799c83d0fb0ebf53d875ec2834801234b9

Contents?: true

Size: 956 Bytes

Versions: 3

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

3 entries across 3 versions & 1 rubygems

Version Path
moysklad-0.1.3 lib/moysklad/entities/custom_entity_metadata.rb
moysklad-0.1.2 lib/moysklad/entities/custom_entity_metadata.rb
moysklad-0.1.1 lib/moysklad/entities/custom_entity_metadata.rb