Class: MapFlightExResults
- Inherits:
-
Object
- Object
- MapFlightExResults
- Defined in:
- lib/FlightXML2REST.rb
Instance Attribute Summary collapse
-
#mapFlightExResult ⇒ Object
Returns the value of attribute mapFlightExResult.
Instance Method Summary collapse
-
#initialize(mapFlightExResult = nil) ⇒ MapFlightExResults
constructor
A new instance of MapFlightExResults.
Constructor Details
#initialize(mapFlightExResult = nil) ⇒ MapFlightExResults
Returns a new instance of MapFlightExResults.
1833 1834 1835 1836 1837 1838 1839 1840 1841 |
# File 'lib/FlightXML2REST.rb', line 1833 def initialize(mapFlightExResult = nil) begin rawMapFlightExResult = JSON.parse(mapFlightExResult) mapFlightExResult = rawMapFlightExResult['MapFlightExResult'] @mapFlightExResult = mapFlightExResult rescue raise FlightAwareError.new(rawMapFlightExResult['error']).error end end |
Instance Attribute Details
#mapFlightExResult ⇒ Object
Returns the value of attribute mapFlightExResult.
1832 1833 1834 |
# File 'lib/FlightXML2REST.rb', line 1832 def mapFlightExResult @mapFlightExResult end |