Class: DoorLoop::Users
- Inherits:
-
Object
- Object
- DoorLoop::Users
- Defined in:
- lib/doorloop/users.rb
Instance Method Summary collapse
- #find(id) ⇒ Object
- #get_current_user ⇒ Object
-
#initialize(client) ⇒ Users
constructor
A new instance of Users.
- #list(options = {}) ⇒ Object
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_user ⇒ Object
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( = {}) @client.get('users', ) end |