Class: Satis::Info::Component

Inherits:
ApplicationComponent show all
Defined in:
app/components/satis/info/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, **options) ⇒ Component

Returns a new instance of Component.



15
16
17
18
19
# File 'app/components/satis/info/component.rb', line 15

def initialize(group: :main, **options)
  super
  @group = group
  @options = options
end

Instance Attribute Details

#groupObject (readonly)

Returns the value of attribute group.



13
14
15
# File 'app/components/satis/info/component.rb', line 13

def group
  @group
end

#optionsObject (readonly)

Returns the value of attribute options.



13
14
15
# File 'app/components/satis/info/component.rb', line 13

def options
  @options
end