Class: UseParagon::User

Inherits:
Base
  • Object
show all
Defined in:
lib/use_paragon/user.rb

Overview

docs.useparagon.com/api/api-reference#getuser-paragonuser Retrieve the currently authenticated user and their connected integration state

Instance Attribute Summary

Attributes inherited from Base

#token, #user_id

Instance Method Summary collapse

Methods inherited from Base

#generate_token, #initialize

Constructor Details

This class inherits a constructor from UseParagon::Base

Instance Method Details

#credentialsObject



17
18
19
# File 'lib/use_paragon/user.rb', line 17

def credentials
  connection.get(path("sdk/credentials"))
end

#getObject



9
10
11
# File 'lib/use_paragon/user.rb', line 9

def get
  connection.get(path("sdk/me"))
end

#metadata=(metadata) ⇒ Object



13
14
15
# File 'lib/use_paragon/user.rb', line 13

def metadata=()
  connection.patch(path("sdk/me"), )
end