Class: LastTweetRedux::Job
- Inherits:
-
Object
- Object
- LastTweetRedux::Job
- Defined in:
- lib/last_tweet_redux/job.rb
Instance Method Summary collapse
-
#initialize(opts) ⇒ Job
constructor
A new instance of Job.
- #run ⇒ Object
Constructor Details
#initialize(opts) ⇒ Job
Returns a new instance of Job.
6 7 8 9 |
# File 'lib/last_tweet_redux/job.rb', line 6 def initialize(opts) @options = opts @client = opts.redis_url ? Redis.new : Redis.new(url: opts.redis_url) end |