Class: Asana::User

Inherits:
Client show all
Defined in:
lib/asana/user.rb

Instance Attribute Summary

Attributes inherited from Client

#token

Class Method Summary collapse

Methods inherited from Client

authenticate, format

Class Method Details

.all(params = {}) ⇒ Object



15
16
17
18
19
20
# File 'lib/asana/user.rb', line 15

def self.all(params = {})
  options = {}
  options = self.prefix_engine(params)
  uri = "/users"
  self.format(uri, params)
end

.by_workspace(params = {}) ⇒ Object



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

def self.by_workspace(params ={})
  uri = "/workspaces/#{params[:workspace]}/users"
  self.format(uri, params)
end

.get_by_id(params = {}) ⇒ Object



9
10
11
12
13
# File 'lib/asana/user.rb', line 9

def self.get_by_id(params = {})
  uri = "/users/#{params[:user]}"
  params.delete(:user)
  self.format(uri, params)
end

.me(params = {}) ⇒ Object



4
5
6
7
# File 'lib/asana/user.rb', line 4

def self.me(params = {})
  uri = "/users/me"
  self.format(uri, params)
end