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.



1713
1714
1715
1716
1717
1718
1719
1720
1721
# File 'lib/FlightXML2REST.rb', line 1713

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.



1712
1713
1714
# File 'lib/FlightXML2REST.rb', line 1712

def latLongsToDistanceResult
  @latLongsToDistanceResult
end