Class: LatLongsToHeadingResults

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(latLongsToHeadingResult = nil) ⇒ LatLongsToHeadingResults

Returns a new instance of LatLongsToHeadingResults.



1741
1742
1743
1744
1745
1746
1747
1748
1749
# File 'lib/FlightXML2REST.rb', line 1741

def initialize(latLongsToHeadingResult = nil)
  begin
    rawLatLongsToHeadingResult = JSON.parse(latLongsToHeadingResult)
    latLongsToHeadingResult = rawLatLongsToHeadingResult['LatLongsToHeadingResult']
    @latLongsToHeadingResult = latLongsToHeadingResult
  rescue
      raise FlightAwareError.new(rawLatLongsToHeadingResult['error']).error
  end
end

Instance Attribute Details

#latLongsToHeadingResultObject

Returns the value of attribute latLongsToHeadingResult.



1740
1741
1742
# File 'lib/FlightXML2REST.rb', line 1740

def latLongsToHeadingResult
  @latLongsToHeadingResult
end