module GoogleMaps
Public Class Methods
client(*args)
click to toggle source
# File lib/google_maps.rb, line 14 def self.client(*args) if args.present? @@client = args.first else @@client end end
configure(&block)
click to toggle source
# File lib/google_maps.rb, line 10 def self.configure(&block) block.call(self) end
enterprise_account?()
click to toggle source
# File lib/google_maps.rb, line 38 def self.enterprise_account? @@enterprise_account || false end
key(*args)
click to toggle source
# File lib/google_maps.rb, line 22 def self.key(*args) if args.present? @@key = args.first else @@key end end
use_enterprise_account(*args)
click to toggle source
# File lib/google_maps.rb, line 30 def self.use_enterprise_account(*args) if args.first.present? && args.first == false @@enterprise_account = false else @@enterprise_account = true end end