Class: Satis::Tabs::Component

Inherits:
ApplicationComponent show all
Defined in:
app/components/satis/tabs/component.rb

Instance Attribute Summary collapse

Attributes inherited from ApplicationComponent

#original_view_context

Instance Method Summary collapse

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

#groupObject (readonly)

Returns the value of attribute group.



7
8
9
# File 'app/components/satis/tabs/component.rb', line 7

def group
  @group
end

#keyObject (readonly)

Returns the value of attribute key.



7
8
9
# File 'app/components/satis/tabs/component.rb', line 7

def key
  @key
end

#persistObject (readonly)

Returns the value of attribute persist.



7
8
9
# File 'app/components/satis/tabs/component.rb', line 7

def persist
  @persist
end