Class: AmaLayout::NavigationItem

Inherits:
Object
  • Object
show all
Includes:
ActiveModel::Model, Draper::Decoratable
Defined in:
lib/ama_layout/navigation_item.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(args = {}) ⇒ NavigationItem

Returns a new instance of NavigationItem.



8
9
10
11
# File 'lib/ama_layout/navigation_item.rb', line 8

def initialize(args = {})
  self.current_url = args[:current_url]
  super
end

Instance Attribute Details

#altObject

Returns the value of attribute alt.



6
7
8
# File 'lib/ama_layout/navigation_item.rb', line 6

def alt
  @alt
end

#current_urlObject

Returns the value of attribute current_url.



6
7
8
# File 'lib/ama_layout/navigation_item.rb', line 6

def current_url
  @current_url
end

#iconObject

Returns the value of attribute icon.



6
7
8
# File 'lib/ama_layout/navigation_item.rb', line 6

def icon
  @icon
end

Returns the value of attribute link.



6
7
8
# File 'lib/ama_layout/navigation_item.rb', line 6

def link
  @link
end

Returns the value of attribute sub_nav.



6
7
8
# File 'lib/ama_layout/navigation_item.rb', line 6

def sub_nav
  @sub_nav
end

#targetObject

Returns the value of attribute target.



6
7
8
# File 'lib/ama_layout/navigation_item.rb', line 6

def target
  @target
end

#textObject

Returns the value of attribute text.



6
7
8
# File 'lib/ama_layout/navigation_item.rb', line 6

def text
  @text
end