Class: Itinerary::Record::Field
- Inherits:
-
Object
- Object
- Itinerary::Record::Field
- Defined in:
- lib/itinerary/record.rb
Instance Attribute Summary collapse
-
#key ⇒ Object
Returns the value of attribute key.
-
#name ⇒ Object
Returns the value of attribute name.
-
#type ⇒ Object
Returns the value of attribute type.
Instance Method Summary collapse
-
#initialize(key, options = {}) ⇒ Field
constructor
A new instance of Field.
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, ={}) @key = key @type = [:type] @name = [:name] end |
Instance Attribute Details
#key ⇒ Object
Returns the value of attribute key.
7 8 9 |
# File 'lib/itinerary/record.rb', line 7 def key @key end |
#name ⇒ Object
Returns the value of attribute name.
9 10 11 |
# File 'lib/itinerary/record.rb', line 9 def name @name end |
#type ⇒ Object
Returns the value of attribute type.
8 9 10 |
# File 'lib/itinerary/record.rb', line 8 def type @type end |