Class: DataObjects::Field

Inherits:
Object show all
Defined in:
lib/gems/data_objects-0.9.10.1/lib/data_objects/field.rb

Instance Method Summary collapse

Constructor Details

#initialize(name, type) ⇒ Field

Returns a new instance of Field.



5
6
7
# File 'lib/gems/data_objects-0.9.10.1/lib/data_objects/field.rb', line 5

def initialize(name, type)
  @name, @type = name, type
end

Instance Method Details

#nameObject



9
10
11
# File 'lib/gems/data_objects-0.9.10.1/lib/data_objects/field.rb', line 9

def name
  @name
end

#typeObject



13
14
15
# File 'lib/gems/data_objects-0.9.10.1/lib/data_objects/field.rb', line 13

def type
  @type
end