Class: MotionModel::InputHelpers::FieldBindingMap
- Inherits:
-
Object
- Object
- MotionModel::InputHelpers::FieldBindingMap
- 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
-
#label ⇒ Object
Returns the value of attribute label.
-
#name ⇒ Object
Returns the value of attribute name.
-
#tag ⇒ Object
Returns the value of attribute tag.
Instance Method Summary collapse
-
#initialize(options = {}) ⇒ FieldBindingMap
constructor
A new instance of FieldBindingMap.
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( = {}) @name = [:name] @label = [:label] end |
Instance Attribute Details
#label ⇒ Object
Returns the value of attribute label.
9 10 11 |
# File 'lib/motion_model/input_helpers.rb', line 9 def label @label end |
#name ⇒ Object
Returns the value of attribute name.
9 10 11 |
# File 'lib/motion_model/input_helpers.rb', line 9 def name @name end |
#tag ⇒ Object
Returns the value of attribute tag.
9 10 11 |
# File 'lib/motion_model/input_helpers.rb', line 9 def tag @tag end |