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.
576 577 578 579 580 581 |
# File 'lib/FlightXML2REST.rb', line 576 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.
575 576 577 |
# File 'lib/FlightXML2REST.rb', line 575 def latitude @latitude end |
#longitude ⇒ Object
Returns the value of attribute longitude.
575 576 577 |
# File 'lib/FlightXML2REST.rb', line 575 def longitude @longitude end |
#name ⇒ Object
Returns the value of attribute name.
575 576 577 |
# File 'lib/FlightXML2REST.rb', line 575 def name @name end |
#type ⇒ Object
Returns the value of attribute type.
575 576 577 |
# File 'lib/FlightXML2REST.rb', line 575 def type @type end |