class Ym4r::YahooMaps::BuildingBlock::Traffic::ResultSet

Contains a list of results from the Yahoo! Maps Traffic REST API

Attributes

last_update_date[RW]
warning[RW]

Public Class Methods

new(last_update_date,warning) click to toggle source
# File lib/ym4r/yahoo_maps/building_block/traffic.rb, line 76
def initialize(last_update_date,warning)
  super(0)
  @last_update_date = last_update_date
  @warning = warning
end

Public Instance Methods

exact_match?() click to toggle source

Indicates if the location passed in the request could be exactly identified.

# File lib/ym4r/yahoo_maps/building_block/traffic.rb, line 83
def exact_match?
  warning.nil?
end