In Files

Parent

Methods

Included Modules

HipChat::Client

Public Class Methods

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

  http_proxy = options[:http_proxy] || ENV['http_proxy']
  setup_proxy(http_proxy) if http_proxy
end

Public Instance Methods

[](name) click to toggle source
# File lib/hipchat.rb, line 31
def [](name)
  Room.new(@token, :room_id => name)
end
rooms() click to toggle source
# File lib/hipchat.rb, line 26
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.