Class: Primer::Forms::Dsl::SelectInput::Option
- Inherits:
-
Object
- Object
- Primer::Forms::Dsl::SelectInput::Option
- Includes:
- TestSelectorHelper
- Defined in:
- app/lib/primer/forms/dsl/select_input.rb
Overview
:nodoc:
Constant Summary
Constants included from TestSelectorHelper
TestSelectorHelper::TEST_SELECTOR_TAG
Instance Attribute Summary collapse
-
#label ⇒ Object
readonly
Returns the value of attribute label.
-
#system_arguments ⇒ Object
readonly
Returns the value of attribute system_arguments.
-
#value ⇒ Object
readonly
Returns the value of attribute value.
Instance Method Summary collapse
-
#initialize(label:, value:, **system_arguments) ⇒ Option
constructor
A new instance of Option.
Methods included from TestSelectorHelper
Constructor Details
#initialize(label:, value:, **system_arguments) ⇒ Option
Returns a new instance of Option.
16 17 18 19 20 |
# File 'app/lib/primer/forms/dsl/select_input.rb', line 16 def initialize(label:, value:, **system_arguments) @label = label @value = value @system_arguments = add_test_selector(system_arguments) end |
Instance Attribute Details
#label ⇒ Object (readonly)
Returns the value of attribute label.
14 15 16 |
# File 'app/lib/primer/forms/dsl/select_input.rb', line 14 def label @label end |
#system_arguments ⇒ Object (readonly)
Returns the value of attribute system_arguments.
14 15 16 |
# File 'app/lib/primer/forms/dsl/select_input.rb', line 14 def system_arguments @system_arguments end |
#value ⇒ Object (readonly)
Returns the value of attribute value.
14 15 16 |
# File 'app/lib/primer/forms/dsl/select_input.rb', line 14 def value @value end |