Class: GetLastTrackResults

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

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#getLastTrackResultObject

Returns the value of attribute getLastTrackResult.



1377
1378
1379
# File 'lib/FlightXML2REST.rb', line 1377

def getLastTrackResult
  @getLastTrackResult
end