module Feat
Constants
- VERSION
Attributes
configuration[RW]
Public Class Methods
configure() { |configuration| ... }
click to toggle source
# File lib/feat.rb, line 12 def configure self.configuration ||= Feat::Configuration.new yield configuration end
perform(feat, **opts)
click to toggle source
# File lib/feat.rb, line 17 def perform(feat, **opts) audience = opts[:for] Feat::Cache.new(feat, audience).cache_to_redis end
record()
click to toggle source
# File lib/feat.rb, line 22 def record Feat::Uploader.new.upload_to_server end
redis()
click to toggle source
# File lib/feat.rb, line 26 def redis @redis ||= ConnectionPool.new(configuration.connection_pool) do Redis.new(configuration.redis) end end