lib/kentaa/api/clients/users.rb in kentaa-api-0.4.0 vs lib/kentaa/api/clients/users.rb in kentaa-api-0.5.0

- old
+ new

@@ -13,21 +13,26 @@ users = Kentaa::Api::Resources::Users.new(config, options) users.load end def get(id, options = {}) - user = Kentaa::Api::Resources::User.new(config, options.merge(id: id)) + user = Kentaa::Api::Resources::User.new(config, id: id, options: options) user.load end def create(attributes = {}, options = {}) user = Kentaa::Api::Resources::Users.new(config, options) user.create(attributes) end def update(id, attributes = {}, options = {}) - user = Kentaa::Api::Resources::User.new(config, options.merge(id: id)) + user = Kentaa::Api::Resources::User.new(config, id: id, options: options) user.save(attributes) + end + + def auth(attributes = {}, options = {}) + user = Kentaa::Api::Resources::Users.new(config, options) + user.auth(attributes) end end end end end