Class: Avo::Dashboards::BaseDivider

Inherits:
Object
  • Object
show all
Defined in:
lib/avo/dashboards/base_divider.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(label: nil, invisible: false, index: nil) ⇒ BaseDivider

Returns a new instance of BaseDivider.



10
11
12
13
14
# File 'lib/avo/dashboards/base_divider.rb', line 10

def initialize(label: nil, invisible: false, index: nil)
  @label = label
  @invisible = invisible
  @index = index
end

Instance Attribute Details

#indexObject (readonly)

Returns the value of attribute index.



6
7
8
# File 'lib/avo/dashboards/base_divider.rb', line 6

def index
  @index
end

#invisibleObject (readonly)

Returns the value of attribute invisible.



5
6
7
# File 'lib/avo/dashboards/base_divider.rb', line 5

def invisible
  @invisible
end

#labelObject (readonly)

Returns the value of attribute label.



4
5
6
# File 'lib/avo/dashboards/base_divider.rb', line 4

def label
  @label
end

Instance Method Details

#is_card?Boolean

Returns:

  • (Boolean)


20
21
22
# File 'lib/avo/dashboards/base_divider.rb', line 20

def is_card?
  false
end

#is_divider?Boolean

Returns:

  • (Boolean)


16
17
18
# File 'lib/avo/dashboards/base_divider.rb', line 16

def is_divider?
  true
end