class Rlocu2::Menu

class copied from old locu gem ( github.com/swelltrain/rlocu/blob/master/lib/rlocu/menu.rb )

Attributes

menu_name[RW]
sections[RW]

Public Class Methods

new(menu_hash) click to toggle source
# File lib/rlocu2/objects.rb, line 116
def initialize(menu_hash)
  @menu_name = menu_hash['menu_name']
  self.sections = menu_hash['sections']
end

Public Instance Methods

sections=(sections_list) click to toggle source
# File lib/rlocu2/objects.rb, line 121
def sections=(sections_list)
  @sections = []
  sections_list.each { |section| @sections << Rlocu2::Menu::Section.new(section) } unless sections_list.nil?
end