Module: Mementus::ElementBuilder
- Included in:
- EdgeBuilder, NodeBuilder
- Defined in:
- lib/mementus/element_builder.rb
Instance Attribute Summary collapse
-
#id ⇒ Object
Returns the value of attribute id.
-
#label ⇒ Object
Returns the value of attribute label.
Instance Method Summary collapse
Instance Attribute Details
#id ⇒ Object
Returns the value of attribute id.
3 4 5 |
# File 'lib/mementus/element_builder.rb', line 3 def id @id end |
#label ⇒ Object
Returns the value of attribute label.
3 4 5 |
# File 'lib/mementus/element_builder.rb', line 3 def label @label end |
Instance Method Details
#[]=(prop_key, value) ⇒ Object
13 14 15 |
# File 'lib/mementus/element_builder.rb', line 13 def []=(prop_key, value) props[prop_key] = value end |
#props ⇒ Object
5 6 7 |
# File 'lib/mementus/element_builder.rb', line 5 def props @props ||= {} end |
#props=(props_map) ⇒ Object
9 10 11 |
# File 'lib/mementus/element_builder.rb', line 9 def props=(props_map) @props = props_map end |