Module: Codebits::User

Included in:
Client
Defined in:
lib/codebits/user.rb

Instance Method Summary collapse

Instance Method Details

#accepted(skill = nil) ⇒ Object



19
20
21
# File 'lib/codebits/user.rb', line 19

def accepted(skill=nil)
  get("/Codebits/users#{'/'+ skill if skill}")
end

#add_friend(id) ⇒ Object



11
12
13
# File 'lib/codebits/user.rb', line 11

def add_friend(id)
  put("/Codebits/foafadd/#{id}")
end

#friends(id) ⇒ Object



7
8
9
# File 'lib/codebits/user.rb', line 7

def friends(id)
  get("/Codebits/foaf/#{id}")
end

#reject_friend(id) ⇒ Object



15
16
17
# File 'lib/codebits/user.rb', line 15

def reject_friend(id)
  put("/Codebits/foafreject/#{id}")
end

#sessions(id) ⇒ Object



23
24
25
# File 'lib/codebits/user.rb', line 23

def sessions(id)
  get("/Codebits/usersessions/#{id}")
end

#user(id) ⇒ Object



3
4
5
# File 'lib/codebits/user.rb', line 3

def user(id)
  get("/Codebits/user/#{id}")
end