Class: Cortex::Users

Inherits:
Resource show all
Defined in:
lib/cortex/users.rb

Instance Method Summary collapse

Methods inherited from Resource

#initialize

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

#meObject



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