Class: Hospodar::Builder::Id

Inherits:
Struct
  • Object
show all
Defined in:
lib/hospodar/builder/id.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#groupObject

Returns the value of attribute group

Returns:

  • (Object)

    the current value of group



5
6
7
# File 'lib/hospodar/builder/id.rb', line 5

def group
  @group
end

#titleObject

Returns the value of attribute title

Returns:

  • (Object)

    the current value of title



5
6
7
# File 'lib/hospodar/builder/id.rb', line 5

def title
  @title
end

Instance Method Details

#to_sObject



6
7
8
# File 'lib/hospodar/builder/id.rb', line 6

def to_s
  to_a.compact.reverse.join('_')
end

#to_symObject



10
11
12
# File 'lib/hospodar/builder/id.rb', line 10

def to_sym
  to_s.to_sym
end