Sha256: 3f3136f1f2414293ae7f23f07989d55e560d26eb076059f55bc779c551547764
Contents?: true
Size: 504 Bytes
Versions: 5
Compression:
Stored size: 504 Bytes
Contents
module Geoloqi class Config attr_accessor :client_id, :client_secret, :adapter, :enable_logging, :redirect_uri def initialize(opts={}) opts.each {|k,v| send("#{k}=", v)} self.enable_logging ||= false raise ArgumentError, 'enable_logging must be boolean' unless [true, false].include? self.enable_logging end def client_id? !client_id.nil? && !client_id.empty? end def client_secret? !client_secret.nil? && !client_secret.empty? end end end
Version data entries
5 entries across 5 versions & 1 rubygems
Version | Path |
---|---|
geoloqi-0.9.8 | lib/geoloqi/config.rb |
geoloqi-0.9.7 | lib/geoloqi/config.rb |
geoloqi-0.9.6 | lib/geoloqi/config.rb |
geoloqi-0.9.5 | lib/geoloqi/config.rb |
geoloqi-0.9.4 | lib/geoloqi/config.rb |