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

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

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

#groupObject (readonly)

Returns the value of attribute group.



12
13
14
# File 'app/components/satis/tabs/component.rb', line 12

def group
  @group
end

#keyObject (readonly)

Returns the value of attribute key.



12
13
14
# File 'app/components/satis/tabs/component.rb', line 12

def key
  @key
end

#persistObject (readonly)

Returns the value of attribute persist.



12
13
14
# File 'app/components/satis/tabs/component.rb', line 12

def persist
  @persist
end