Class: Faalis::Dashboard::Helpers::BoxHelpers::Tabs::Tab

Inherits:
Object
  • Object
show all
Defined in:
lib/faalis/dashboard/helpers/box_helpers.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(title, **options) ⇒ Tab

Returns a new instance of Tab.



30
31
32
33
34
35
# File 'lib/faalis/dashboard/helpers/box_helpers.rb', line 30

def initialize(title, **options)
  @title      = title
  @active     = false
  @active     = true if options[:active] == true
  @title_icon = options[:title_icon]
end

Instance Attribute Details

#contentObject

Returns the value of attribute content.



28
29
30
# File 'lib/faalis/dashboard/helpers/box_helpers.rb', line 28

def content
  @content
end

#idObject

Returns the value of attribute id.



28
29
30
# File 'lib/faalis/dashboard/helpers/box_helpers.rb', line 28

def id
  @id
end

#titleObject (readonly)

Returns the value of attribute title.



27
28
29
# File 'lib/faalis/dashboard/helpers/box_helpers.rb', line 27

def title
  @title
end

#title_iconObject (readonly)

Returns the value of attribute title_icon.



27
28
29
# File 'lib/faalis/dashboard/helpers/box_helpers.rb', line 27

def title_icon
  @title_icon
end

Instance Method Details

#active?Boolean

Returns:

  • (Boolean)


37
38
39
# File 'lib/faalis/dashboard/helpers/box_helpers.rb', line 37

def active?
  @active
end