class Ym4r::YahooMaps::BuildingBlock::MapImage::Result

Contains a result match from the Yahoo! Maps Map Image service.

Public Instance Methods

download_to(file) click to toggle source

Downloads the image to file.

# File lib/ym4r/yahoo_maps/building_block/map_image.rb, line 59
def download_to(file)
  data = open(url).read
  open(file,"wb") do |f|
    f.write data
  end
end
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/map_image.rb, line 67
def exact_match?
  warning.nil?
end