Class: SearchCountResults
- Inherits:
-
Object
- Object
- SearchCountResults
- Defined in:
- lib/FlightXML2REST.rb
Instance Attribute Summary collapse
-
#searchCountResult ⇒ Object
Returns the value of attribute searchCountResult.
Instance Method Summary collapse
-
#initialize(searchCountResult = nil) ⇒ SearchCountResults
constructor
A new instance of SearchCountResults.
Constructor Details
#initialize(searchCountResult = nil) ⇒ SearchCountResults
Returns a new instance of SearchCountResults.
2447 2448 2449 2450 2451 2452 2453 2454 2455 |
# File 'lib/FlightXML2REST.rb', line 2447 def initialize(searchCountResult = nil) begin rawSearchCountResult = JSON.parse(searchCountResult) searchCountResult = rawSearchCountResult['SearchCountResult'] @searchCountResult = searchCountResult rescue raise FlightAwareError.new(rawSearchCountResult['error']).error end end |
Instance Attribute Details
#searchCountResult ⇒ Object
Returns the value of attribute searchCountResult.
2446 2447 2448 |
# File 'lib/FlightXML2REST.rb', line 2446 def searchCountResult @searchCountResult end |