Class: Itinerary::Record::Field

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(key, options = {}) ⇒ Field

Returns a new instance of Field.



11
12
13
14
15
# File 'lib/itinerary/record.rb', line 11

def initialize(key, options={})
  @key = key
  @type = options[:type]
  @name = options[:name]
end

Instance Attribute Details

#keyObject

Returns the value of attribute key.



7
8
9
# File 'lib/itinerary/record.rb', line 7

def key
  @key
end

#nameObject

Returns the value of attribute name.



9
10
11
# File 'lib/itinerary/record.rb', line 9

def name
  @name
end

#typeObject

Returns the value of attribute type.



8
9
10
# File 'lib/itinerary/record.rb', line 8

def type
  @type
end