Class: Informatics::View::Menu::Item
- Inherits:
-
Object
- Object
- Informatics::View::Menu::Item
- Defined in:
- lib/informatics/lib/informatics/view/menu/item.rb
Overview
rubocop:todo Style/Documentation
Instance Attribute Summary collapse
-
#confirm ⇒ Object
Returns the value of attribute confirm.
-
#link ⇒ Object
Returns the value of attribute link.
-
#method ⇒ Object
Returns the value of attribute method.
-
#text ⇒ Object
Returns the value of attribute text.
Instance Method Summary collapse
-
#initialize(options = {}) ⇒ Item
constructor
A new instance of Item.
Constructor Details
#initialize(options = {}) ⇒ Item
Returns a new instance of Item.
7 8 9 10 11 12 |
# File 'lib/informatics/lib/informatics/view/menu/item.rb', line 7 def initialize( = {}) @text = [:text] @link = [:link] @confirm = [:confirm] @method = [:method] end |
Instance Attribute Details
#confirm ⇒ Object
Returns the value of attribute confirm
5 6 7 |
# File 'lib/informatics/lib/informatics/view/menu/item.rb', line 5 def confirm @confirm end |
#link ⇒ Object
Returns the value of attribute link
5 6 7 |
# File 'lib/informatics/lib/informatics/view/menu/item.rb', line 5 def link @link end |
#method ⇒ Object
Returns the value of attribute method
5 6 7 |
# File 'lib/informatics/lib/informatics/view/menu/item.rb', line 5 def method @method end |
#text ⇒ Object
Returns the value of attribute text
5 6 7 |
# File 'lib/informatics/lib/informatics/view/menu/item.rb', line 5 def text @text end |