Class: Satis::InfoItem::Component
- Inherits:
-
ApplicationComponent
- Object
- ViewComponent::Base
- ApplicationComponent
- Satis::InfoItem::Component
- Defined in:
- app/components/satis/info_item/component.rb
Instance Attribute Summary collapse
-
#group ⇒ Object
readonly
Returns the value of attribute group.
-
#icon ⇒ Object
readonly
Returns the value of attribute icon.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#options ⇒ Object
readonly
Returns the value of attribute options.
Attributes inherited from ApplicationComponent
Instance Method Summary collapse
-
#initialize(name, *args, &block) ⇒ 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(name, *args, &block) ⇒ Component
Returns a new instance of Component.
8 9 10 11 12 13 14 15 16 |
# File 'app/components/satis/info_item/component.rb', line 8 def initialize(name, *args, &block) super @name = name @args = args @options = args. @group = [:group] @icon = [:icon] @placeholder = [:placeholder] || '—' end |
Instance Attribute Details
#group ⇒ Object (readonly)
Returns the value of attribute group.
6 7 8 |
# File 'app/components/satis/info_item/component.rb', line 6 def group @group end |
#icon ⇒ Object (readonly)
Returns the value of attribute icon.
6 7 8 |
# File 'app/components/satis/info_item/component.rb', line 6 def icon @icon end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
6 7 8 |
# File 'app/components/satis/info_item/component.rb', line 6 def name @name end |
#options ⇒ Object (readonly)
Returns the value of attribute options.
6 7 8 |
# File 'app/components/satis/info_item/component.rb', line 6 def @options end |