Class: Primer::Forms::Dsl::SelectInput::Option

Inherits:
Object
  • Object
show all
Includes:
TestSelectorHelper
Defined in:
lib/primer/forms/dsl/select_input.rb

Overview

:nodoc:

Constant Summary

Constants included from TestSelectorHelper

TestSelectorHelper::TEST_SELECTOR_TAG

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from TestSelectorHelper

#add_test_selector

Constructor Details

#initialize(label:, value:, **system_arguments) ⇒ Option

Returns a new instance of Option.



16
17
18
19
20
# File '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

#labelObject (readonly)

Returns the value of attribute label.



14
15
16
# File 'lib/primer/forms/dsl/select_input.rb', line 14

def label
  @label
end

#system_argumentsObject (readonly)

Returns the value of attribute system_arguments.



14
15
16
# File 'lib/primer/forms/dsl/select_input.rb', line 14

def system_arguments
  @system_arguments
end

#valueObject (readonly)

Returns the value of attribute value.



14
15
16
# File 'lib/primer/forms/dsl/select_input.rb', line 14

def value
  @value
end