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.



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

def attribute
  @attribute
end

#helpObject

Returns the value of attribute help.



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

def help
  @help
end

#labelObject

Returns the value of attribute label.



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

def label
  @label
end

#optionsObject



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

def options
  @options || {}
end

#select_optionsObject



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

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

#typeObject

Returns the value of attribute type.



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

def type
  @type
end