Class: TwitterCache::Config
- Inherits:
-
Object
- Object
- TwitterCache::Config
- Defined in:
- lib/twitter_cache/config.rb
Instance Attribute Summary collapse
-
#redis ⇒ Object
Returns the value of attribute redis.
-
#ttl ⇒ Object
Returns the value of attribute ttl.
-
#twitter ⇒ Object
Returns the value of attribute twitter.
Instance Method Summary collapse
Instance Attribute Details
#redis ⇒ Object
Returns the value of attribute redis.
3 4 5 |
# File 'lib/twitter_cache/config.rb', line 3 def redis @redis end |
#ttl ⇒ Object
Returns the value of attribute ttl.
3 4 5 |
# File 'lib/twitter_cache/config.rb', line 3 def ttl @ttl end |
#twitter ⇒ Object
Returns the value of attribute twitter.
3 4 5 |
# File 'lib/twitter_cache/config.rb', line 3 def twitter @twitter end |
Instance Method Details
#convert_user(raw) ⇒ Object
9 10 11 12 |
# File 'lib/twitter_cache/config.rb', line 9 def convert_user(raw) return raw unless @user_instance @user_instance.call(raw) end |
#user_instance(&block) ⇒ Object
5 6 7 |
# File 'lib/twitter_cache/config.rb', line 5 def user_instance(&block) @user_instance = block end |