Module: Jibeset::Client::Users

Included in:
Jibeset::Client
Defined in:
lib/jibeset/client/users.rb

Instance Method Summary collapse

Instance Method Details

#create_user(payload) ⇒ Object



5
6
7
# File 'lib/jibeset/client/users.rb', line 5

def create_user(payload)
  post("/users", payload)
end

#destroy_user(payload) ⇒ Object



17
18
19
# File 'lib/jibeset/client/users.rb', line 17

def destroy_user(payload)
  delete("/users/#{payload[:id]}")
end

#meObject



21
22
23
# File 'lib/jibeset/client/users.rb', line 21

def me
  get("/me")
end

#update_user(payload) ⇒ Object



13
14
15
# File 'lib/jibeset/client/users.rb', line 13

def update_user(payload)
  put("/users/#{payload[:id]}", payload)
end

#user(payload) ⇒ Object



9
10
11
# File 'lib/jibeset/client/users.rb', line 9

def user(payload)
  get("/users/#{payload[:id]}")
end