Class: LatLongsToDistanceResults

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(latLongsToDistanceResult = nil) ⇒ LatLongsToDistanceResults

Returns a new instance of LatLongsToDistanceResults.



1717
1718
1719
1720
1721
1722
1723
1724
1725
# File 'lib/FlightXML2REST.rb', line 1717

def initialize(latLongsToDistanceResult = nil)
  begin
    rawLatLongsToDistanceResult = JSON.parse(latLongsToDistanceResult)
    latLongsToDistanceResult = rawLatLongsToDistance['LatLongsToDistanceResult']
    @latLongsToDistanceResult = latLongsToDistanceResult
  rescue
      raise FlightAwareError.new(rawLatLongsToDistanceResult['error']).error
  end
end

Instance Attribute Details

#latLongsToDistanceResultObject

Returns the value of attribute latLongsToDistanceResult.



1716
1717
1718
# File 'lib/FlightXML2REST.rb', line 1716

def latLongsToDistanceResult
  @latLongsToDistanceResult
end