Class: HakumiComponents::Concerns::InputControlContract

Inherits:
Object
  • Object
show all
Extended by:
T::Sig
Defined in:
app/components/hakumi_components/concerns/input_control_contract.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#disabledObject (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_contractObject (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

#placeholderObject (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

#readonlyObject (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

#sizeObject (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

#valueObject (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