Module: Croudia::API::Users
- Included in:
- Client
- Defined in:
- lib/croudia/api/users.rb
Instance Method Summary collapse
-
#user(user, params = {}) ⇒ Croudia::User
Retrieve a user.
-
#users(*args) ⇒ Array<Croudia::User>
Lookup Users.
Instance Method Details
#user(user, params = {}) ⇒ Croudia::User #user(params = {}) ⇒ Croudia::User
Retrieve a user
17 18 19 20 21 |
# File 'lib/croudia/api/users.rb', line 17 def user(user, params={}) merge_user!(params, user) resp = get('/users/show.json', params) Croudia::User.new(resp) end |
#users(*users, params = {}) ⇒ Array<Croudia::User> #users(params = {}) ⇒ Array<Croudia::User>
Lookup Users
34 35 36 37 38 |
# File 'lib/croudia/api/users.rb', line 34 def users(*args) merge_users!(params = {}, args) resp = get('/users/lookup.json', params) objects(Croudia::User, resp) end |