Class: Tinychat
Defined Under Namespace
Classes: MissingRoom, Room
Class Method Summary collapse
Class Method Details
.info_for(room_name) ⇒ Object
16 17 18 19 20 21 22 |
# File 'lib/tinychat.rb', line 16 def self.info_for(room_name) result = get("http://api.tinychat.com/#{room_name}.json") if result["error"] raise MissingRoom, "#{room_name} is not broadcasting" end Room.new(result) end |