Class: MotionModel::InputHelpers::FieldBindingMap

Inherits:
Object
  • Object
show all
Defined in:
lib/motion_model/input_helpers.rb

Overview

FieldBindingMap contains a simple label to model field binding, and is decorated by a tag to be used on the UI control.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(options = {}) ⇒ FieldBindingMap

Returns a new instance of FieldBindingMap.



11
12
13
14
# File 'lib/motion_model/input_helpers.rb', line 11

def initialize(options = {})
  @name = options[:name]
  @label = options[:label]
end

Instance Attribute Details

#labelObject

Returns the value of attribute label.



9
10
11
# File 'lib/motion_model/input_helpers.rb', line 9

def label
  @label
end

#nameObject

Returns the value of attribute name.



9
10
11
# File 'lib/motion_model/input_helpers.rb', line 9

def name
  @name
end

#tagObject

Returns the value of attribute tag.



9
10
11
# File 'lib/motion_model/input_helpers.rb', line 9

def tag
  @tag
end