lib/cru_lib.rb in cru_lib-0.0.6 vs lib/cru_lib.rb in cru_lib-0.1.0

- old
+ new

@@ -1,36 +1,8 @@ require 'cru_lib/version' require 'cru_lib/async' require 'cru_lib/global_registry_methods' require 'cru_lib/global_registry_relationship_methods' -require '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' +require 'cru_lib/global_registry_master_person_methods' 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