lib/google_maps.rb in google_maps-0.2.0 vs lib/google_maps.rb in google_maps-0.3.0

- old
+ new

@@ -9,18 +9,26 @@ def self.configure(&block) block.call(self) end + def self.client(*args) + if args.present? + @@client = args.first + else + @@client + end + end + def self.key(*args) if args.present? @@key = args.first else @@key end end - + def self.use_enterprise_account(*args) if args.first.present? && args.first == false @@enterprise_account = false else @@enterprise_account = true @@ -29,13 +37,6 @@ def self.enterprise_account? @@enterprise_account || false end - def self.key_name - enterprise_account? ? :client : :key - end - - def self.geocoder_key_name - :clientId if enterprise_account? - end end