Module: Rack::Campfire::Hooks
- Defined in:
- lib/rack/campfire/hooks.rb
Instance Method Summary collapse
Instance Method Details
#message ⇒ Object
16 17 18 |
# File 'lib/rack/campfire/hooks.rb', line 16 def env['campfire.message'] end |
#room ⇒ Object
11 12 13 14 |
# File 'lib/rack/campfire/hooks.rb', line 11 def room return unless rooms.detect { |r| r.room_id == .room_id } end |
#rooms ⇒ Object
7 8 9 |
# File 'lib/rack/campfire/hooks.rb', line 7 def rooms env['campfire.rooms'] end |
#tinder ⇒ Object
3 4 5 |
# File 'lib/rack/campfire/hooks.rb', line 3 def tinder env['campfire'] end |