Class: HakumiComponents::Concerns::InputControlContract
- Inherits:
-
Object
- Object
- HakumiComponents::Concerns::InputControlContract
- Extended by:
- T::Sig
- Defined in:
- app/components/hakumi_components/concerns/input_control_contract.rb
Instance Attribute Summary collapse
-
#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.
-
#readonly ⇒ Object
readonly
Returns the value of attribute readonly.
-
#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:, readonly:) ⇒ InputControlContract
constructor
A new instance of InputControlContract.
Constructor Details
#initialize(form_field_contract:, value:, placeholder:, size:, disabled:, readonly:) ⇒ InputControlContract
Returns a new instance of InputControlContract.
19 20 21 22 23 24 25 26 |
# File 'app/components/hakumi_components/concerns/input_control_contract.rb', line 19 def initialize(form_field_contract:, value:, placeholder:, size:, disabled:, readonly:) @form_field_contract = form_field_contract @value = value @placeholder = placeholder @size = size @disabled = disabled @readonly = readonly end |
Instance Attribute Details
#disabled ⇒ Object (readonly)
Returns the value of attribute disabled.
41 42 43 |
# File 'app/components/hakumi_components/concerns/input_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/input_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/input_control_contract.rb', line 35 def placeholder @placeholder end |
#readonly ⇒ Object (readonly)
Returns the value of attribute readonly.
44 45 46 |
# File 'app/components/hakumi_components/concerns/input_control_contract.rb', line 44 def readonly @readonly end |
#size ⇒ Object (readonly)
Returns the value of attribute size.
38 39 40 |
# File 'app/components/hakumi_components/concerns/input_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/input_control_contract.rb', line 32 def value @value end |