Class: Satis::Tabs::Component
- Inherits:
-
ApplicationComponent
- Object
- ViewComponent::Base
- ApplicationComponent
- Satis::Tabs::Component
- Defined in:
- app/components/satis/tabs/component.rb
Instance Attribute Summary collapse
-
#custom_link ⇒ Object
readonly
Returns the value of attribute custom_link.
-
#group ⇒ Object
readonly
Returns the value of attribute group.
-
#key ⇒ Object
readonly
Returns the value of attribute key.
-
#persist ⇒ Object
readonly
Returns the value of attribute persist.
Attributes inherited from ApplicationComponent
Instance Method Summary collapse
-
#initialize(group: :main, persist: false, key: nil, custom_link: nil) ⇒ Component
constructor
A new instance of Component.
Methods inherited from ApplicationComponent
Constructor Details
#initialize(group: :main, persist: false, key: nil, custom_link: nil) ⇒ Component
Returns a new instance of Component.
14 15 16 17 18 19 20 21 |
# File 'app/components/satis/tabs/component.rb', line 14 def initialize(group: :main, persist: false, key: nil, custom_link: nil) super @group = group @persist = persist @key = key @scope = group @custom_link = custom_link end |
Instance Attribute Details
#custom_link ⇒ Object (readonly)
Returns the value of attribute custom_link.
12 13 14 |
# File 'app/components/satis/tabs/component.rb', line 12 def custom_link @custom_link end |
#group ⇒ Object (readonly)
Returns the value of attribute group.
12 13 14 |
# File 'app/components/satis/tabs/component.rb', line 12 def group @group end |
#key ⇒ Object (readonly)
Returns the value of attribute key.
12 13 14 |
# File 'app/components/satis/tabs/component.rb', line 12 def key @key end |
#persist ⇒ Object (readonly)
Returns the value of attribute persist.
12 13 14 |
# File 'app/components/satis/tabs/component.rb', line 12 def persist @persist end |