Module: Mdma
- Defined in:
- lib/mdma.rb,
lib/mdma/version.rb
Overview
Provides a method to listen and respond to messages in a Campfire room.
Constant Summary collapse
- VERSION =
'0.1.1'
Class Method Summary collapse
-
.run(options = {}) ⇒ Object
Listen and respond to messages in a Campfire room.
Class Method Details
.run(options = {}) ⇒ Object
Listen and respond to messages in a Campfire room.
17 18 19 20 21 |
# File 'lib/mdma.rb', line 17 def self.run( = {}) Room.new().listen do |room, request| room.respond_with request.response if request.relevant? end end |