Method: MapPrint::Tile#download

Defined in:
lib/map_print/tiles/tile.rb

#downloadObject



17
18
19
20
21
22
# File 'lib/map_print/tiles/tile.rb', line 17

def download
  unless File.exists?(file_path)
    content = open(tile_url).read
    write_file(content)
  end
end