Class: Caw::TwitterStream

Inherits:
Object
  • Object
show all
Defined in:
lib/caw.rb

Instance Method Summary collapse

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