Class: HakumiComponents::Concerns::SelectionControlContract
- Inherits:
-
Object
- Object
- HakumiComponents::Concerns::SelectionControlContract
- Extended by:
- T::Sig
- Defined in:
- app/components/hakumi_components/concerns/selection_control_contract.rb
Instance Attribute Summary collapse
-
#allow_clear ⇒ Object
readonly
Returns the value of attribute allow_clear.
-
#disabled ⇒ Object
readonly
Returns the value of attribute disabled.
-
#form_field_contract ⇒ Object
readonly
Returns the value of attribute form_field_contract.
-
#placeholder ⇒ Object
readonly
Returns the value of attribute placeholder.
-
#size ⇒ Object
readonly
Returns the value of attribute size.
-
#value ⇒ Object
readonly
Returns the value of attribute value.
Instance Method Summary collapse
-
#initialize(form_field_contract:, value:, placeholder:, size:, disabled:, allow_clear:) ⇒ SelectionControlContract
constructor
A new instance of SelectionControlContract.
Constructor Details
#initialize(form_field_contract:, value:, placeholder:, size:, disabled:, allow_clear:) ⇒ SelectionControlContract
Returns a new instance of SelectionControlContract.
19 20 21 22 23 24 25 26 |
# File 'app/components/hakumi_components/concerns/selection_control_contract.rb', line 19 def initialize(form_field_contract:, value:, placeholder:, size:, disabled:, allow_clear:) @form_field_contract = form_field_contract @value = value @placeholder = placeholder @size = size @disabled = disabled @allow_clear = allow_clear end |
Instance Attribute Details
#allow_clear ⇒ Object (readonly)
Returns the value of attribute allow_clear.
44 45 46 |
# File 'app/components/hakumi_components/concerns/selection_control_contract.rb', line 44 def allow_clear @allow_clear end |
#disabled ⇒ Object (readonly)
Returns the value of attribute disabled.
41 42 43 |
# File 'app/components/hakumi_components/concerns/selection_control_contract.rb', line 41 def disabled @disabled end |
#form_field_contract ⇒ Object (readonly)
Returns the value of attribute form_field_contract.
29 30 31 |
# File 'app/components/hakumi_components/concerns/selection_control_contract.rb', line 29 def form_field_contract @form_field_contract end |
#placeholder ⇒ Object (readonly)
Returns the value of attribute placeholder.
35 36 37 |
# File 'app/components/hakumi_components/concerns/selection_control_contract.rb', line 35 def placeholder @placeholder end |
#size ⇒ Object (readonly)
Returns the value of attribute size.
38 39 40 |
# File 'app/components/hakumi_components/concerns/selection_control_contract.rb', line 38 def size @size end |
#value ⇒ Object (readonly)
Returns the value of attribute value.
32 33 34 |
# File 'app/components/hakumi_components/concerns/selection_control_contract.rb', line 32 def value @value end |