class Confy::Api::User
User
who is authenticated currently.
Public Class Methods
new(client)
click to toggle source
# File lib/confy/api/user.rb, line 8 def initialize(client) @client = client end
Public Instance Methods
retrieve(options = {})
click to toggle source
Get the authenticated user's profile.
'/user' GET
# File lib/confy/api/user.rb, line 15 def retrieve(options = {}) body = options.fetch(:query, {}) @client.get("/user", body, options) end
update(options = {})
click to toggle source
Update the authenticated user's profile. Should use basic authentication.
'/user' PATCH
# File lib/confy/api/user.rb, line 25 def update(options = {}) body = options.fetch(:body, {}) @client.patch("/user", body, options) end