Class: LatLongsToDistanceResults
- Inherits:
-
Object
- Object
- LatLongsToDistanceResults
- Defined in:
- lib/FlightXML2REST.rb
Instance Attribute Summary collapse
-
#latLongsToDistanceResult ⇒ Object
Returns the value of attribute latLongsToDistanceResult.
Instance Method Summary collapse
-
#initialize(latLongsToDistanceResult = nil) ⇒ LatLongsToDistanceResults
constructor
A new instance of LatLongsToDistanceResults.
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
#latLongsToDistanceResult ⇒ Object
Returns the value of attribute latLongsToDistanceResult.
1712 1713 1714 |
# File 'lib/FlightXML2REST.rb', line 1712 def latLongsToDistanceResult @latLongsToDistanceResult end |