Class: Informatics::View::Tabs::Item

Inherits:
Object
  • Object
show all
Defined in:
lib/informatics/lib/informatics/view/tabs/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
# File 'lib/informatics/lib/informatics/view/tabs/item.rb', line 8

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

Instance Attribute Details

Returns the value of attribute link.


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

def link
  @link
end

#textObject

Returns the value of attribute text.


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

def text
  @text
end