module Locotimezone
Constants
- VERSION
Attributes
configuration[RW]
Public Class Methods
configure() { |configuration| ... }
click to toggle source
# File lib/locotimezone.rb, line 24 def self.configure self.configuration ||= Configuration.new yield configuration if block_given? self end
configure_with_defaults()
click to toggle source
# File lib/locotimezone.rb, line 35 def self.configure_with_defaults Locotimezone.configure { |config| config.google_api_key = '' } end
locotime(options = {})
click to toggle source
# File lib/locotimezone.rb, line 17 def self.locotime(options = {}) configure_with_defaults if configuration.nil? Locotime.new(location: options[:location], address: options[:address], skip: options[:skip]).call end
reset_configuration()
click to toggle source
# File lib/locotimezone.rb, line 30 def self.reset_configuration self.configuration = Configuration.new configure_with_defaults end