Module: FBomb::Campfire::StreamExtension
- Defined in:
- lib/fbomb/campfire.rb
Instance Method Summary collapse
Instance Method Details
#stream ⇒ Object
40 41 42 43 44 45 46 47 48 49 |
# File 'lib/fbomb/campfire.rb', line 40 def stream @stream ||= ( flow = self Twitter::JSONStream.connect( :path => "/flow/#{ flow.id }/live.json", :host => 'streaming.campfirenow.com', :auth => "#{ connection.token }:x" ) ) end |
#streaming(&block) ⇒ Object
51 52 53 |
# File 'lib/fbomb/campfire.rb', line 51 def streaming(&block) steam.instance_eval(&block) end |