Class: LatLongsToHeadingResults
- Inherits:
-
Object
- Object
- LatLongsToHeadingResults
- Defined in:
- lib/FlightXML2REST.rb
Instance Attribute Summary collapse
-
#latLongsToHeadingResult ⇒ Object
Returns the value of attribute latLongsToHeadingResult.
Instance Method Summary collapse
-
#initialize(latLongsToHeadingResult = nil) ⇒ LatLongsToHeadingResults
constructor
A new instance of LatLongsToHeadingResults.
Constructor Details
#initialize(latLongsToHeadingResult = nil) ⇒ LatLongsToHeadingResults
Returns a new instance of LatLongsToHeadingResults.
1745 1746 1747 1748 1749 1750 1751 1752 1753 |
# File 'lib/FlightXML2REST.rb', line 1745 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
#latLongsToHeadingResult ⇒ Object
Returns the value of attribute latLongsToHeadingResult.
1744 1745 1746 |
# File 'lib/FlightXML2REST.rb', line 1744 def latLongsToHeadingResult @latLongsToHeadingResult end |