Module: TwitterTweetBot::Cache::ConfigurationExt
- Included in:
- TwitterTweetBot::Configuration
- Defined in:
- lib/twitter_tweet_bot/cache/configuration_ext.rb
Instance Attribute Summary collapse
- #cache ⇒ Object
-
#cache_provider ⇒ Object
Returns the value of attribute cache_provider.
Instance Method Summary collapse
Instance Attribute Details
#cache ⇒ Object
14 15 16 |
# File 'lib/twitter_tweet_bot/cache/configuration_ext.rb', line 14 def cache @cache ||= Store.new(name, cache_provider) end |
#cache_provider ⇒ Object
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 |