Module: TwitterTweetBot::Cache::ConfigurationExt

Included in:
TwitterTweetBot::Configuration
Defined in:
lib/twitter_tweet_bot/cache/configuration_ext.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#cacheObject



14
15
16
# File 'lib/twitter_tweet_bot/cache/configuration_ext.rb', line 14

def cache
  @cache ||= Store.new(name, cache_provider)
end

#cache_providerObject

Returns the value of attribute cache_provider.



6
7
8
# File 'lib/twitter_tweet_bot/cache/configuration_ext.rb', line 6

def cache_provider
  @cache_provider
end

Instance Method Details

#initialize(cache_provider: nil, **kwargs) ⇒ Object



9
10
11
12
# File 'lib/twitter_tweet_bot/cache/configuration_ext.rb', line 9

def initialize(cache_provider: nil, **kwargs)
  @cache_provider = cache_provider
  super(**kwargs)
end