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
-
#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) ⇒ Component
constructor
A new instance of Component.
Methods inherited from ApplicationComponent
add_helper, #component_name, #ct, #i18n_scope, #original_i18n_scope, #original_virtual_path
Constructor Details
#initialize(group: :main, persist: false, key: nil) ⇒ Component
Returns a new instance of Component.
9 10 11 12 13 14 |
# File 'app/components/satis/tabs/component.rb', line 9 def initialize(group: :main, persist: false, key: nil) super @group = group @persist = persist @key = key end |
Instance Attribute Details
#group ⇒ Object (readonly)
Returns the value of attribute group.
7 8 9 |
# File 'app/components/satis/tabs/component.rb', line 7 def group @group end |
#key ⇒ Object (readonly)
Returns the value of attribute key.
7 8 9 |
# File 'app/components/satis/tabs/component.rb', line 7 def key @key end |
#persist ⇒ Object (readonly)
Returns the value of attribute persist.
7 8 9 |
# File 'app/components/satis/tabs/component.rb', line 7 def persist @persist end |