Class: Satis::Sidebar::Component

Inherits:
ApplicationComponent show all
Defined in:
app/components/satis/sidebar/component.rb

Instance Attribute Summary collapse

Attributes inherited from ApplicationComponent

#original_view_context

Instance Method Summary collapse

Methods inherited from ApplicationComponent

add_helper, #component_name

Constructor Details

#initialize(menu) ⇒ Component

Returns a new instance of Component.



11
12
13
14
# File 'app/components/satis/sidebar/component.rb', line 11

def initialize(menu)
  super
  @menu = menu
end

Instance Attribute Details

Returns the value of attribute menu.



5
6
7
# File 'app/components/satis/sidebar/component.rb', line 5

def menu
  @menu
end

Returns the value of attribute menu_options.



5
6
7
# File 'app/components/satis/sidebar/component.rb', line 5

def menu_options
  @menu_options
end