Class: Primer::Forms::Dsl::SelectInput::Option
- Inherits:
-
Object
- Object
- Primer::Forms::Dsl::SelectInput::Option
- Defined in:
- lib/primer/forms/dsl/select_input.rb
Overview
:nodoc:
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.
Constructor Details
#initialize(label:, value:, **system_arguments) ⇒ Option
Returns a new instance of Option.
14 15 16 17 18 |
# File 'lib/primer/forms/dsl/select_input.rb', line 14 def initialize(label:, value:, **system_arguments) @label = label @value = value @system_arguments = system_arguments end |
Instance Attribute Details
#label ⇒ Object (readonly)
Returns the value of attribute label.
12 13 14 |
# File 'lib/primer/forms/dsl/select_input.rb', line 12 def label @label end |
#system_arguments ⇒ Object (readonly)
Returns the value of attribute system_arguments.
12 13 14 |
# File 'lib/primer/forms/dsl/select_input.rb', line 12 def system_arguments @system_arguments end |
#value ⇒ Object (readonly)
Returns the value of attribute value.
12 13 14 |
# File 'lib/primer/forms/dsl/select_input.rb', line 12 def value @value end |