Class: GetLastTrackResults
- Inherits:
-
Object
- Object
- GetLastTrackResults
- Defined in:
- lib/FlightXML2REST.rb
Instance Attribute Summary collapse
-
#getLastTrackResult ⇒ Object
Returns the value of attribute getLastTrackResult.
Instance Method Summary collapse
-
#initialize(getLastTrackResult = nil) ⇒ GetLastTrackResults
constructor
A new instance of GetLastTrackResults.
Constructor Details
#initialize(getLastTrackResult = nil) ⇒ GetLastTrackResults
Returns a new instance of GetLastTrackResults.
1378 1379 1380 1381 1382 1383 1384 1385 1386 1387 1388 1389 1390 1391 1392 1393 |
# File 'lib/FlightXML2REST.rb', line 1378 def initialize(getLastTrackResult = nil) getLastTrackResult = JSON.parse(getLastTrackResult)['GetLastTrackResult'] @getLastTrackResult = ArrayOfTrackStruct.new() getLastTrackResult['data'].each do |data| @getLastTrackResult.data << TrackStruct.new(data['altitude'], data['altitudeChange'], data['altitudeStatus'], data['groundsped'], data['latitude'], data['longitude'], data['timestamp'], data['updateType'] ) end end |
Instance Attribute Details
#getLastTrackResult ⇒ Object
Returns the value of attribute getLastTrackResult.
1377 1378 1379 |
# File 'lib/FlightXML2REST.rb', line 1377 def getLastTrackResult @getLastTrackResult end |