Class: Kentaa::Api::Resources::Users
- Defined in:
- lib/kentaa/api/resources/users.rb
Instance Attribute Summary
Attributes inherited from Base
#config, #endpoint_path, #options, #resource_class
Instance Method Summary collapse
- #auth(attributes, options = {}) ⇒ Object
-
#initialize(config, options = {}) ⇒ Users
constructor
A new instance of Users.
Methods inherited from List
#[], #all, #create, #current_page, #delete, #each, #get, #links, #next, #next_page, #next_page?, #pages, #per_page, #previous, #previous_page, #previous_page?, #size, #total_entries, #total_pages, #update
Methods inherited from Base
attribute_key, #load, #loaded?
Constructor Details
Instance Method Details
#auth(attributes, options = {}) ⇒ Object
11 12 13 14 |
# File 'lib/kentaa/api/resources/users.rb', line 11 def auth(attributes, = {}) resource = resource_class.new(config, options: ) resource.load { request.post("#{endpoint_path}/auth", , attributes) } end |