Class: SearchCountResults

Inherits:
Object
  • Object
show all
Defined in:
lib/FlightXML2REST.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#searchCountResultObject

Returns the value of attribute searchCountResult.



2446
2447
2448
# File 'lib/FlightXML2REST.rb', line 2446

def searchCountResult
  @searchCountResult
end