Sha256: b3dc34013bac50ffcf94c95c66a91b9932f76f7a30e42cb00ae100361b00679d
Contents?: true
Size: 488 Bytes
Versions: 4
Compression:
Stored size: 488 Bytes
Contents
module Geoloqi class Config attr_accessor :client_id, :client_secret, :adapter, :enable_logging 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
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
geoloqi-0.9.3 | lib/geoloqi/config.rb |
geoloqi-0.9.2 | lib/geoloqi/config.rb |
geoloqi-0.9.1 | lib/geoloqi/config.rb |
geoloqi-0.9.0 | lib/geoloqi/config.rb |