Class: HipChat2::Client

Inherits:
Object
  • Object
show all
Defined in:
lib/hipchat2.rb

Instance Method Summary collapse

Constructor Details

#initialize(token) ⇒ Client

Returns a new instance of Client.



13
14
15
# File 'lib/hipchat2.rb', line 13

def initialize(token)
  @token = token
end

Instance Method Details

#[](name) ⇒ Object



17
18
19
# File 'lib/hipchat2.rb', line 17

def [](name)
  Room.new(@token, :room_id => name)
end