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.
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
#latLongsToHeadingResult ⇒ Object
Returns the value of attribute latLongsToHeadingResult.
1740 1741 1742 |
# File 'lib/FlightXML2REST.rb', line 1740 def latLongsToHeadingResult @latLongsToHeadingResult end |