In Files

Parent

Methods

Included Modules

HipChat::Client

Public Class Methods

new(token) click to toggle source
# File lib/hipchat.rb, line 19
def initialize(token)
  @token = token
end

Public Instance Methods

[](name) click to toggle source
# File lib/hipchat.rb, line 28
def [](name)
  Room.new(@token, :room_id => name)
end
rooms() click to toggle source
# File lib/hipchat.rb, line 23
def rooms
  @rooms ||= self.class.get("/list", :query => {:auth_token => @token})['rooms'].
    map { |r| Room.new(@token, r) }
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.