Class Ym4r::YahooMaps::BuildingBlock::MapImage::Result
In: lib/ym4r/yahoo_maps/building_block/map_image.rb
Parent: Struct.new(:warning,:url)

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

Methods

Public Instance methods

Downloads the image to file.

[Source]

    # File lib/ym4r/yahoo_maps/building_block/map_image.rb, line 59
59:           def download_to(file)
60:             data = open(url).read
61:             open(file,"wb") do |f|
62:               f.write data
63:             end
64:           end

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

[Source]

    # File lib/ym4r/yahoo_maps/building_block/map_image.rb, line 67
67:           def exact_match?
68:             warning.nil?
69:           end

[Validate]