Class: UatActions::FormField
- Inherits:
-
Object
- Object
- UatActions::FormField
- Includes:
- ActiveModel::Model
- Defined in:
- app/uat_actions/uat_actions/form_field.rb
Overview
Captures information about each form field and indicates how to render it
Instance Attribute Summary collapse
-
#attribute ⇒ Object
Returns the value of attribute attribute.
-
#help ⇒ Object
Returns the value of attribute help.
-
#label ⇒ Object
Returns the value of attribute label.
- #options ⇒ Object
- #select_options ⇒ Object
-
#type ⇒ Object
Returns the value of attribute type.
Instance Attribute Details
#attribute ⇒ Object
Returns the value of attribute attribute.
6 7 8 |
# File 'app/uat_actions/uat_actions/form_field.rb', line 6 def attribute @attribute end |
#help ⇒ Object
Returns the value of attribute help.
6 7 8 |
# File 'app/uat_actions/uat_actions/form_field.rb', line 6 def help @help end |
#label ⇒ Object
Returns the value of attribute label.
6 7 8 |
# File 'app/uat_actions/uat_actions/form_field.rb', line 6 def label @label end |
#options ⇒ Object
13 14 15 |
# File 'app/uat_actions/uat_actions/form_field.rb', line 13 def @options || {} end |
#select_options ⇒ Object
9 10 11 |
# File 'app/uat_actions/uat_actions/form_field.rb', line 9 def @select_options.respond_to?(:call) ? @select_options.call : @select_options end |
#type ⇒ Object
Returns the value of attribute type.
6 7 8 |
# File 'app/uat_actions/uat_actions/form_field.rb', line 6 def type @type end |