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.
98 99 100 101 102 |
# File 'lib/labilerecord.rb', line 98 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.
94 95 96 |
# File 'lib/labilerecord.rb', line 94 def name @name end |
#type ⇒ Object (readonly)
Returns the value of attribute type.
95 96 97 |
# File 'lib/labilerecord.rb', line 95 def type @type end |
#type_id ⇒ Object (readonly)
Returns the value of attribute type_id.
96 97 98 |
# File 'lib/labilerecord.rb', line 96 def type_id @type_id end |