Class: ModelFormFacade::Field
- Inherits:
-
Data
- Object
- Data
- ModelFormFacade::Field
- Defined in:
- lib/model_form_facade.rb
Instance Attribute Summary collapse
-
#attribute ⇒ Object
readonly
Returns the value of attribute attribute.
-
#form ⇒ Object
readonly
Returns the value of attribute form.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#read ⇒ Object
readonly
Returns the value of attribute read.
-
#type ⇒ Object
readonly
Returns the value of attribute type.
-
#write ⇒ Object
readonly
Returns the value of attribute write.
Instance Method Summary collapse
Instance Attribute Details
#attribute ⇒ Object (readonly)
Returns the value of attribute attribute
99 100 101 |
# File 'lib/model_form_facade.rb', line 99 def attribute @attribute end |
#form ⇒ Object (readonly)
Returns the value of attribute form
99 100 101 |
# File 'lib/model_form_facade.rb', line 99 def form @form end |
#name ⇒ Object (readonly)
Returns the value of attribute name
99 100 101 |
# File 'lib/model_form_facade.rb', line 99 def name @name end |
#read ⇒ Object (readonly)
Returns the value of attribute read
99 100 101 |
# File 'lib/model_form_facade.rb', line 99 def read @read end |
#type ⇒ Object (readonly)
Returns the value of attribute type
99 100 101 |
# File 'lib/model_form_facade.rb', line 99 def type @type end |
#write ⇒ Object (readonly)
Returns the value of attribute write
99 100 101 |
# File 'lib/model_form_facade.rb', line 99 def write @write end |
Instance Method Details
#serialize(v) ⇒ Object
100 101 102 103 |
# File 'lib/model_form_facade.rb', line 100 def serialize(v) return v unless type == :scalar v&.to_s end |