Class: UatActions::FormField

Inherits:
Object
  • Object
show all
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

Instance Attribute Details

#attributeObject

Returns the value of attribute attribute.



6
7
8
# File 'app/uat_actions/uat_actions/form_field.rb', line 6

def attribute
  @attribute
end

#helpObject

Returns the value of attribute help.



6
7
8
# File 'app/uat_actions/uat_actions/form_field.rb', line 6

def help
  @help
end

#labelObject

Returns the value of attribute label.



6
7
8
# File 'app/uat_actions/uat_actions/form_field.rb', line 6

def label
  @label
end

#optionsObject



13
14
15
# File 'app/uat_actions/uat_actions/form_field.rb', line 13

def options
  @options || {}
end

#select_optionsObject



9
10
11
# File 'app/uat_actions/uat_actions/form_field.rb', line 9

def select_options
  @select_options.respond_to?(:call) ? @select_options.call : @select_options
end

#typeObject

Returns the value of attribute type.



6
7
8
# File 'app/uat_actions/uat_actions/form_field.rb', line 6

def type
  @type
end