Class: Spina::Pages::PageSelectComponent
- Inherits:
-
ApplicationComponent
- Object
- ViewComponent::Base
- ApplicationComponent
- Spina::Pages::PageSelectComponent
- Defined in:
- app/components/spina/pages/page_select_component.rb
Instance Attribute Summary collapse
-
#disabled ⇒ Object
Returns the value of attribute disabled.
-
#include_blank ⇒ Object
Returns the value of attribute include_blank.
-
#name ⇒ Object
Returns the value of attribute name.
-
#pages ⇒ Object
Returns the value of attribute pages.
-
#selected ⇒ Object
Returns the value of attribute selected.
Instance Method Summary collapse
-
#initialize(name, pages, include_blank: false, selected: nil, disabled: nil) ⇒ PageSelectComponent
constructor
A new instance of PageSelectComponent.
- #options ⇒ Object
Constructor Details
#initialize(name, pages, include_blank: false, selected: nil, disabled: nil) ⇒ PageSelectComponent
Returns a new instance of PageSelectComponent.
5 6 7 8 9 10 11 |
# File 'app/components/spina/pages/page_select_component.rb', line 5 def initialize(name, pages, include_blank: false, selected: nil, disabled: nil) @name = name @pages = pages @include_blank = include_blank @selected = selected @disabled = disabled end |
Instance Attribute Details
#disabled ⇒ Object
Returns the value of attribute disabled.
3 4 5 |
# File 'app/components/spina/pages/page_select_component.rb', line 3 def disabled @disabled end |
#include_blank ⇒ Object
Returns the value of attribute include_blank.
3 4 5 |
# File 'app/components/spina/pages/page_select_component.rb', line 3 def include_blank @include_blank end |
#name ⇒ Object
Returns the value of attribute name.
3 4 5 |
# File 'app/components/spina/pages/page_select_component.rb', line 3 def name @name end |
#pages ⇒ Object
Returns the value of attribute pages.
3 4 5 |
# File 'app/components/spina/pages/page_select_component.rb', line 3 def pages @pages end |
#selected ⇒ Object
Returns the value of attribute selected.
3 4 5 |
# File 'app/components/spina/pages/page_select_component.rb', line 3 def selected @selected end |