class AmoCRM::Entities::AttributeMetadata
Public Instance Methods
dictionatyMetadata(universe)
click to toggle source
Если это свойство типа ID_CUSTOM, то возвращается пользовательский справочник
@return AmoCRM::Entities::CustomEntityMetadata
# File lib/amo_crm/entities/attribute_metadata.rb, line 25 def dictionatyMetadata universe raise "Это свойства не типа справочник" unless dictionaryMetadataUuid universe.custom_entity_metadata.find dictionaryMetadataUuid end
entityMetadata(universe)
click to toggle source
Справочник к которому принадлежит это ссвойство
@return AmoCRM::Entities::EmbeddedEntityMetadata
# File lib/amo_crm/entities/attribute_metadata.rb, line 33 def entityMetadata universe universe.embedded_entity_metadata.find entityMetadataUuid end
is_dictionary?()
click to toggle source
# File lib/amo_crm/entities/attribute_metadata.rb, line 18 def is_dictionary? attrType == 'ID_CUSTOM' end