Module: OpenWebslides::Converter::Content::Properties::Identifier

Included in:
ContentItem
Defined in:
lib/openwebslides/converter/content/properties/identifier.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#idObject

Returns the value of attribute id.



8
9
10
# File 'lib/openwebslides/converter/content/properties/identifier.rb', line 8

def id
  @id
end

Instance Method Details

#to_hObject

Convert property to hash

This is the start of the chain of overridden #to_h methods. In all subsequent included property modules, #to_h should call ‘super.merge :property => property`



21
22
23
# File 'lib/openwebslides/converter/content/properties/identifier.rb', line 21

def to_h
  { :id => id }
end