Class: MapFlightResults
- Inherits:
-
Object
- Object
- MapFlightResults
- Defined in:
- lib/FlightXML2REST.rb
Instance Attribute Summary collapse
-
#mapFlightResult ⇒ Object
Returns the value of attribute mapFlightResult.
Instance Method Summary collapse
-
#initialize(mapFlightResult = nil) ⇒ MapFlightResults
constructor
A new instance of MapFlightResults.
Constructor Details
#initialize(mapFlightResult = nil) ⇒ MapFlightResults
Returns a new instance of MapFlightResults.
1768 1769 1770 1771 1772 1773 1774 1775 1776 |
# File 'lib/FlightXML2REST.rb', line 1768 def initialize(mapFlightResult = nil) begin rawMapFlightResult = JSON.parse(mapFlightResult) mapFlightResult = rawMapFlightResult['MapFlightResult'] @mapFlightResult = mapFlightResult rescue raise FlightAwareError.new(rawMapFlightResult['error']).error end end |
Instance Attribute Details
#mapFlightResult ⇒ Object
Returns the value of attribute mapFlightResult.
1767 1768 1769 |
# File 'lib/FlightXML2REST.rb', line 1767 def mapFlightResult @mapFlightResult end |