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.



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

#nameObject (readonly)

Returns the value of attribute name.



130
131
132
# File 'lib/labilerecord.rb', line 130

def name
  @name
end

#typeObject (readonly)

Returns the value of attribute type.



131
132
133
# File 'lib/labilerecord.rb', line 131

def type
  @type
end

#type_idObject (readonly)

Returns the value of attribute type_id.



132
133
134
# File 'lib/labilerecord.rb', line 132

def type_id
  @type_id
end