Sha256: ca4d73d61a08772f770374ab9f90a40dc86494b266cd1b59f081d6da13659474

Contents?: true

Size: 368 Bytes

Versions: 1

Compression:

Stored size: 368 Bytes

Contents

require_relative 'attribute_value'

module Moysklad::Entities
  class AttributeMetadata < Base
    attribute :meta, Meta
    attribute :id, String
    attribute :name, String
    attribute :type, String # string, customentity
    attribute :required, Boolean
    attribute :customEntityMeta, Meta

    def is_dictionary?
      type == 'customentity'
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
moysklad-0.3.0 lib/moysklad/entities/attribute_metadata.rb