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


17
18
19
# File 'app/uat_actions/uat_actions/form_field.rb', line 17

def options
  @options || {}
end

#select_optionsObject


9
10
11
12
13
14
15
# File 'app/uat_actions/uat_actions/form_field.rb', line 9

def select_options
  if @select_options.respond_to?(:call)
    @select_options.call
  else
    @select_options
  end
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