Class: Frigate::Form::Property
- Inherits:
-
Object
- Object
- Frigate::Form::Property
- Includes:
- ActiveModel::Validations
- Defined in:
- lib/frigate/form/property.rb
Overview
Uses to define a form property
Instance Attribute Summary collapse
-
#name ⇒ Object
Returns the value of attribute name.
-
#options ⇒ Object
Returns the value of attribute options.
-
#parent ⇒ Object
Returns the value of attribute parent.
-
#root ⇒ Object
Returns the value of attribute root.
-
#value ⇒ Object
Returns the value of attribute value.
Instance Method Summary collapse
-
#initialize(name, root, parent, options) ⇒ Property
constructor
A new instance of Property.
Constructor Details
Instance Attribute Details
#name ⇒ Object
Returns the value of attribute name.
5 6 7 |
# File 'lib/frigate/form/property.rb', line 5 def name @name end |
#options ⇒ Object
Returns the value of attribute options.
5 6 7 |
# File 'lib/frigate/form/property.rb', line 5 def @options end |
#parent ⇒ Object
Returns the value of attribute parent.
5 6 7 |
# File 'lib/frigate/form/property.rb', line 5 def parent @parent end |
#root ⇒ Object
Returns the value of attribute root.
5 6 7 |
# File 'lib/frigate/form/property.rb', line 5 def root @root end |
#value ⇒ Object
Returns the value of attribute value.
5 6 7 |
# File 'lib/frigate/form/property.rb', line 5 def value @value end |