Class: LabileRecord::Field
- Inherits:
-
Object
- Object
- LabileRecord::Field
- Defined in:
- lib/labilerecord.rb
Instance Attribute Summary collapse
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#type ⇒ Object
readonly
Returns the value of attribute type.
-
#type_id ⇒ Object
readonly
Returns the value of attribute type_id.
Instance Method Summary collapse
-
#initialize(name, type, type_id) ⇒ Field
constructor
A new instance of Field.
Constructor Details
#initialize(name, type, type_id) ⇒ Field
Returns a new instance of Field.
134 135 136 137 138 |
# File 'lib/labilerecord.rb', line 134 def initialize(name, type, type_id) @name = name @type = type @type_id = type_id end |
Instance Attribute Details
#name ⇒ Object (readonly)
Returns the value of attribute name.
130 131 132 |
# File 'lib/labilerecord.rb', line 130 def name @name end |
#type ⇒ Object (readonly)
Returns the value of attribute type.
131 132 133 |
# File 'lib/labilerecord.rb', line 131 def type @type end |
#type_id ⇒ Object (readonly)
Returns the value of attribute type_id.
132 133 134 |
# File 'lib/labilerecord.rb', line 132 def type_id @type_id end |