Module: AbsenteeCamper::Campfire::API

Extended by:
API
Includes:
HTTParty
Included in:
API
Defined in:
lib/absentee_camper/campfire/api.rb

Instance Method Summary collapse

Instance Method Details

#room(room_id) ⇒ Object



15
16
17
# File 'lib/absentee_camper/campfire/api.rb', line 15

def room(room_id)
  Room.new(room_id)
end

#roomsObject



11
12
13
# File 'lib/absentee_camper/campfire/api.rb', line 11

def rooms
  get('/rooms.json')["rooms"]
end

#user(id) ⇒ Object



19
20
21
# File 'lib/absentee_camper/campfire/api.rb', line 19

def user(id)
  get("/users/#{id}.json")["user"]
end