Sha256: 54b58b76cb64678872cfcafae8ca704e4ad3b572d05eb6a0fe49f340d0f7a5de

Contents?: true

Size: 479 Bytes

Versions: 1

Compression:

Stored size: 479 Bytes

Contents

module Kindling
  
  class Campfire
    
    attr_accessor :api_token, :subdomain, :room_id

    def initialize(api_token, subdomain, room_id)
      @api_token = api_token
      @subdomain = subdomain
      @room_id = room_id
      rooms
    end

    def rooms
      Kindling::Request.rooms(self)
    end
    
    def speak(message)
      Kindling::Request.speak(message, self)
    end
    
    def credentials
      {:username => @api_token, :password => 'x'}
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
kindling-0.0.2 lib/kindling/campfire.rb