Sha256: f2fafe9e38735737caa8702052e3c11574cff7514444b9c804510b7023d2cd0d
Contents?: true
Size: 976 Bytes
Versions: 1
Compression:
Stored size: 976 Bytes
Contents
require "cartographie/version" # Cartographie is the root module for all of Cartographie's components module Cartographie autoload :Map, 'cartographie/map' # Public: Create a new Map instance. # # location - The String for the map's location (default: 'Paris, France'). # options - The Hash options used to configure the map (default: {}): # :width - The Integer width of the map (optional). # :height - The Integer height of the map (optional). # :zoom - The Integer zoom level (optional). # :file_format - The String file format for the image (optional). # :sensor - The Boolean indicating GPS usage (optional). # # Examples # # Cartographie.map('Tokyo, Japan') # Cartographie.map('San Francisco, CA', zoom: 10) # # Returns an instance of Cartographie::Map def self.map(location = 'Paris, France', options={}) Map.new(location, options) end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
cartographie-0.0.1 | lib/cartographie.rb |