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)


19
20
21
# File 'lib/moysklad/entities/attribute.rb', line 19

def is_dictionary?
  type == 'customentity'
end

#to_sObject



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

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