Class: Hospodar::Builder::Id
- Inherits:
-
Struct
- Object
- Struct
- Hospodar::Builder::Id
- Defined in:
- lib/hospodar/builder/id.rb
Instance Attribute Summary collapse
-
#group ⇒ Object
Returns the value of attribute group.
-
#title ⇒ Object
Returns the value of attribute title.
Instance Method Summary collapse
Instance Attribute Details
#group ⇒ Object
Returns the value of attribute group
5 6 7 |
# File 'lib/hospodar/builder/id.rb', line 5 def group @group end |
#title ⇒ Object
Returns the value of attribute title
5 6 7 |
# File 'lib/hospodar/builder/id.rb', line 5 def title @title end |
Instance Method Details
#to_s ⇒ Object
6 7 8 |
# File 'lib/hospodar/builder/id.rb', line 6 def to_s to_a.compact.reverse.join('_') end |
#to_sym ⇒ Object
10 11 12 |
# File 'lib/hospodar/builder/id.rb', line 10 def to_sym to_s.to_sym end |