lib/kentaa/api/clients/users.rb in kentaa-api-0.2.1 vs lib/kentaa/api/clients/users.rb in kentaa-api-0.3.0

- old
+ new

@@ -5,16 +5,16 @@ module Clients class Users < Base include Kentaa::Api::Clients::All def list(options = {}) - response = request.get("/users", options) - Kentaa::Api::Resources::Users.new(config, response) + users = Kentaa::Api::Resources::Users.new(config, options) + users.load end - def get(id) - response = request.get("/users/#{id}") - Kentaa::Api::Resources::User.new(config, response) + def get(id, options = {}) + user = Kentaa::Api::Resources::User.new(config, options.merge(id: id)) + user.load end end end end end