Sha256: 58e6152e60f9a6d1ce7bb0f14da77d91a5f36ea4cd12b5ea190bb959ca4a8e4e
Contents?: true
Size: 712 Bytes
Versions: 2
Compression:
Stored size: 712 Bytes
Contents
require 'rubygems' require 'rest_client' require 'active_support/all' require 'google_maps/geocoder' module GoogleMaps @@enterprise_account = false @@key = nil 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 end end def self.enterprise_account? @@enterprise_account || false end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
google_maps-0.3.1 | lib/google_maps.rb |
google_maps-0.3.0 | lib/google_maps.rb |