Module: Jibeset::Client::Users
- Included in:
- Jibeset::Client
- Defined in:
- lib/jibeset/client/users.rb
Instance Method Summary collapse
- #create_user(payload) ⇒ Object
- #destroy_user(payload) ⇒ Object
- #me ⇒ Object
- #update_user(payload) ⇒ Object
- #user(payload) ⇒ Object
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 |
#me ⇒ Object
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 |