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