lib/gmaps_tz/client.rb in gmaps_tz-0.0.3 vs lib/gmaps_tz/client.rb in gmaps_tz-0.0.4

- old
+ new

@@ -7,15 +7,15 @@ FORMAT = "/json" HOST = "maps.googleapis.com" BASE_PATH = "/maps/api" - attr_accessor :key - def initialize(options = {}) @key = options[:key] @basic_params = { sensor: false } @basic_params[:key] = options[:key] if options[:key] + @basic_params[:client] = options[:client] if options[:client] + @basic_params[:signature] = options[:signature] if options[:signature] end def get(path, query_params) uri = generate_uri(path, query_params) response = Net::HTTP.get_response(uri) \ No newline at end of file