Method: GoogleMapsService::Client#initialize
- Defined in:
- lib/google_maps_service/client.rb
#initialize(**options) ⇒ Client
Construct Google Maps Web Service API client.
82 83 84 85 86 87 88 89 90 91 92 93 94 |
# File 'lib/google_maps_service/client.rb', line 82 def initialize(**) [:key, :client_id, :client_secret, :retry_timeout, :queries_per_second].each do |key| instance_variable_set(:"@#{key}", [key] || GoogleMapsService.instance_variable_get(:"@#{key}")) end [:request_options, :ssl_options, :connection].each do |key| if .has_key?(key) raise "GoogleMapsService::Client.new no longer supports #{key}." end end initialize_query_tickets end |