Module: OpenWebslides::Converter::Content::Properties::Identifier
- Included in:
- ContentItem
- Defined in:
- lib/openwebslides/converter/content/properties/identifier.rb
Instance Attribute Summary collapse
-
#id ⇒ Object
Returns the value of attribute id.
Instance Method Summary collapse
-
#to_h ⇒ Object
Convert property to hash.
Instance Attribute Details
#id ⇒ Object
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_h ⇒ Object
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 |