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.
7 8 9 |
# File 'app/uat_actions/uat_actions/form_field.rb', line 7 def attribute @attribute end |
#help ⇒ Object
Returns the value of attribute help.
7 8 9 |
# File 'app/uat_actions/uat_actions/form_field.rb', line 7 def help @help end |
#label ⇒ Object
Returns the value of attribute label.
7 8 9 |
# File 'app/uat_actions/uat_actions/form_field.rb', line 7 def label @label end |
#options ⇒ Object
14 15 16 |
# File 'app/uat_actions/uat_actions/form_field.rb', line 14 def @options || {} end |
#select_options ⇒ Object
10 11 12 |
# File 'app/uat_actions/uat_actions/form_field.rb', line 10 def @select_options.respond_to?(:call) ? @select_options.call : @select_options end |
#type ⇒ Object
Returns the value of attribute type.
7 8 9 |
# File 'app/uat_actions/uat_actions/form_field.rb', line 7 def type @type end |