Class: Moysklad::Entities::Attribute

Inherits:
Base
  • Object
show all
Defined in:
lib/moysklad/entities/attribute.rb

Direct Known Subclasses

Characteristic

Instance Attribute Summary

Attributes inherited from Base

#dump, #universe

Instance Method Summary collapse

Methods inherited from Base

build, #initialize, #to_json

Constructor Details

This class inherits a constructor from Moysklad::Entities::Base

Instance Method Details

#is_dictionary?Boolean

Returns:

  • (Boolean)


16
17
18
# File 'lib/moysklad/entities/attribute.rb', line 16

def is_dictionary?
  type == 'customentity'
end

#to_sObject



12
13
14
# File 'lib/moysklad/entities/attribute.rb', line 12

def to_s
  "#{name} (#{type}): #{value}"
end