Class: Avo::Dashboards::BaseDivider
- Inherits:
-
Object
- Object
- Avo::Dashboards::BaseDivider
- Defined in:
- lib/avo/dashboards/base_divider.rb
Instance Attribute Summary collapse
-
#index ⇒ Object
readonly
Returns the value of attribute index.
-
#invisible ⇒ Object
readonly
Returns the value of attribute invisible.
-
#label ⇒ Object
readonly
Returns the value of attribute label.
Instance Method Summary collapse
-
#initialize(label: nil, invisible: false, index: nil) ⇒ BaseDivider
constructor
A new instance of BaseDivider.
- #is_card? ⇒ Boolean
- #is_divider? ⇒ Boolean
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
#index ⇒ Object (readonly)
Returns the value of attribute index.
6 7 8 |
# File 'lib/avo/dashboards/base_divider.rb', line 6 def index @index end |
#invisible ⇒ Object (readonly)
Returns the value of attribute invisible.
5 6 7 |
# File 'lib/avo/dashboards/base_divider.rb', line 5 def invisible @invisible end |
#label ⇒ Object (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
20 21 22 |
# File 'lib/avo/dashboards/base_divider.rb', line 20 def is_card? false end |
#is_divider? ⇒ Boolean
16 17 18 |
# File 'lib/avo/dashboards/base_divider.rb', line 16 def is_divider? true end |