Class: DoorLoop::Users

Inherits:
Object
  • Object
show all
Defined in:
lib/doorloop/users.rb

Instance Method Summary collapse

Constructor Details

#initialize(client) ⇒ Users

Returns a new instance of Users.



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

def initialize(client)
  @client = client
end

Instance Method Details

#find(id) ⇒ Object



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

def find(id)
  @client.get("users/#{id}")
end

#get_current_userObject



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

def get_current_user
  @client.get('users/me')
end

#list(options = {}) ⇒ Object



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

def list(options = {})
  @client.get('users', options)
end