Class: Rlocu::Menu::Subsection

Inherits:
Object
  • Object
show all
Defined in:
lib/rlocu/menu.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(subsection_hash) ⇒ Subsection

Returns a new instance of Subsection.



55
56
57
58
# File 'lib/rlocu/menu.rb', line 55

def initialize(subsection_hash)
  @subsection_name = subsection_hash['subsection_name']
  self.contents = subsection_hash['contents']
end

Instance Attribute Details

#contentsObject

Returns the value of attribute contents.



54
55
56
# File 'lib/rlocu/menu.rb', line 54

def contents
  @contents
end

#subsection_nameObject (readonly)

Returns the value of attribute subsection_name.



54
55
56
# File 'lib/rlocu/menu.rb', line 54

def subsection_name
  @subsection_name
end