Class: FlightRouteStruct
- Inherits:
-
Object
- Object
- FlightRouteStruct
- Defined in:
- lib/FlightXML2REST.rb
Instance Attribute Summary collapse
-
#latitude ⇒ Object
Returns the value of attribute latitude.
-
#longitude ⇒ Object
Returns the value of attribute longitude.
-
#name ⇒ Object
Returns the value of attribute name.
-
#type ⇒ Object
Returns the value of attribute type.
Instance Method Summary collapse
-
#initialize(latitude = nil, longitude = nil, name = nil, type = nil) ⇒ FlightRouteStruct
constructor
A new instance of FlightRouteStruct.
Constructor Details
#initialize(latitude = nil, longitude = nil, name = nil, type = nil) ⇒ FlightRouteStruct
Returns a new instance of FlightRouteStruct.
644 645 646 647 648 649 |
# File 'lib/FlightXML2REST.rb', line 644 def initialize (latitude = nil, longitude = nil, name = nil, type = nil) @latitude = latitude @longitude = longitude @name = name @type = type end |
Instance Attribute Details
#latitude ⇒ Object
Returns the value of attribute latitude.
643 644 645 |
# File 'lib/FlightXML2REST.rb', line 643 def latitude @latitude end |
#longitude ⇒ Object
Returns the value of attribute longitude.
643 644 645 |
# File 'lib/FlightXML2REST.rb', line 643 def longitude @longitude end |
#name ⇒ Object
Returns the value of attribute name.
643 644 645 |
# File 'lib/FlightXML2REST.rb', line 643 def name @name end |
#type ⇒ Object
Returns the value of attribute type.
643 644 645 |
# File 'lib/FlightXML2REST.rb', line 643 def type @type end |