Class: Informatics::View::Menu::Item

Inherits:
Object
  • Object
show all
Defined in:
lib/informatics/lib/informatics/view/menu/item.rb

Overview

rubocop:todo Style/Documentation

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(options = {}) ⇒ Item

Returns a new instance of Item.


8
9
10
11
12
13
# File 'lib/informatics/lib/informatics/view/menu/item.rb', line 8

def initialize(options = {})
  @text = options[:text]
  @link = options[:link]
  @confirm = options[:confirm]
  @method = options[:method]
end

Instance Attribute Details

#confirmObject

Returns the value of attribute confirm.


6
7
8
# File 'lib/informatics/lib/informatics/view/menu/item.rb', line 6

def confirm
  @confirm
end

Returns the value of attribute link.


6
7
8
# File 'lib/informatics/lib/informatics/view/menu/item.rb', line 6

def link
  @link
end

#methodObject

Returns the value of attribute method.


6
7
8
# File 'lib/informatics/lib/informatics/view/menu/item.rb', line 6

def method
  @method
end

#textObject

Returns the value of attribute text.


6
7
8
# File 'lib/informatics/lib/informatics/view/menu/item.rb', line 6

def text
  @text
end