Class: Cortex::Users
Instance Method Summary collapse
Methods inherited from Resource
Constructor Details
This class inherits a constructor from Cortex::Resource
Instance Method Details
#get(id) ⇒ Object
7 8 9 |
# File 'lib/cortex/users.rb', line 7 def get(id) client.get("/users/#{id}") end |
#me ⇒ Object
3 4 5 |
# File 'lib/cortex/users.rb', line 3 def me client.get('/users/me') end |
#save(user) ⇒ Object
11 12 13 |
# File 'lib/cortex/users.rb', line 11 def save(user) client.save('/users', user) end |