Sha256: 8a18699b9cc16e7ce1123150bd290ae00df9cd1cfa3af2d2c2dbd768ad01631f
Contents?: true
Size: 783 Bytes
Versions: 3
Compression:
Stored size: 783 Bytes
Contents
require 'nico/room' # Provides a method to listen and respond to messages in a Campfire room. module Nico # Listen and respond to messages in a Campfire room. # # @example Interact in the room https://xxx.campfirenow.com/room/123 as the user with token 'abcd' # # require 'nico' # Nico.run 'xxx', 123, 'abcd' # # @param [String] subdomain The campfirenow.com subdomain that hosts the room # @param [Integer] room_id The ID of the Campfire room # @param [String] token The token of the Campfire user to interact with # # @see https://github.com/37signals/campfire-api for Campfire API documentation def self.run(options = {}) Room.new(options).listen do |room, request| room.respond_with request.response if request.relevant? end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
nico-0.1.1 | lib/nico.rb |
nico-0.1.0 | lib/nico.rb |
nico-0.0.2 | lib/nico.rb |