Class: LabileRecord::Field

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

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#nameObject (readonly)

Returns the value of attribute name.



94
95
96
# File 'lib/labilerecord.rb', line 94

def name
  @name
end

#typeObject (readonly)

Returns the value of attribute type.



95
96
97
# File 'lib/labilerecord.rb', line 95

def type
  @type
end

#type_idObject (readonly)

Returns the value of attribute type_id.



96
97
98
# File 'lib/labilerecord.rb', line 96

def type_id
  @type_id
end