Sha256: 87ceb9bbb6302ffa73716c9f0439ce3b8ffc9084e15ca386add2adf2cb067e28
Contents?: true
Size: 810 Bytes
Versions: 2
Compression:
Stored size: 810 Bytes
Contents
require 'cru_lib/version' require 'cru_lib/async' require 'cru_lib/global_registry_methods' require 'cru_lib/global_registry_relationship_methods' require_dependency 'cru_lib/access_token' require 'cru_lib/access_token_serializer' require 'cru_lib/access_token_protected_concern' require 'cru_lib/api_error' require 'cru_lib/api_error_serializer' require 'redis' module CruLib class << self attr_accessor :redis_host, :redis_port, :redis_db, :redis_client def configure yield self end def redis_host @redis_host ||= 'localhost' end def redis_port @redis_port ||= '6379' end def redis_db @redis_db ||= 2 end def redis_client Redis.new(:host => CruLib.redis_host, :port => CruLib.redis_port, :db => CruLib.redis_db) end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
cru_lib-0.0.4 | lib/cru_lib.rb |
cru_lib-0.0.3 | lib/cru_lib.rb |