Class: Primer::Forms::Dsl::SelectListInput::Option

Inherits:
Object
  • Object
show all
Defined in:
lib/primer/forms/dsl/select_list_input.rb

Overview

:nodoc:

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

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

Returns a new instance of Option.



12
13
14
15
16
# File 'lib/primer/forms/dsl/select_list_input.rb', line 12

def initialize(label:, value:, **system_arguments)
  @label = label
  @value = value
  @system_arguments = system_arguments
end

Instance Attribute Details

#labelObject (readonly)

Returns the value of attribute label.



10
11
12
# File 'lib/primer/forms/dsl/select_list_input.rb', line 10

def label
  @label
end

#system_argumentsObject (readonly)

Returns the value of attribute system_arguments.



10
11
12
# File 'lib/primer/forms/dsl/select_list_input.rb', line 10

def system_arguments
  @system_arguments
end

#valueObject (readonly)

Returns the value of attribute value.



10
11
12
# File 'lib/primer/forms/dsl/select_list_input.rb', line 10

def value
  @value
end