Class: Caw::TwitterStream
- Inherits:
-
Object
- Object
- Caw::TwitterStream
- Defined in:
- lib/caw.rb
Instance Method Summary collapse
-
#initialize(search_term) ⇒ TwitterStream
constructor
A new instance of TwitterStream.
- #pop! ⇒ Object
Constructor Details
#initialize(search_term) ⇒ TwitterStream
Returns a new instance of TwitterStream.
36 37 38 39 40 |
# File 'lib/caw.rb', line 36 def initialize(search_term) @search_term = search_term @queue = Queue.new start! end |
Instance Method Details
#pop! ⇒ Object
42 43 44 |
# File 'lib/caw.rb', line 42 def pop! @queue.pop end |