Class: AtlasRb::Authentication
- Inherits:
-
Object
- Object
- AtlasRb::Authentication
- Extended by:
- FaradayHelper
- Defined in:
- lib/atlas_rb/authentication.rb
Class Method Summary collapse
Methods included from FaradayHelper
Class Method Details
.groups(nuid) ⇒ Object
11 12 13 14 |
# File 'lib/atlas_rb/authentication.rb', line 11 def self.groups(nuid) token = login(nuid) # TODO end |
.login(nuid) ⇒ Object
7 8 9 |
# File 'lib/atlas_rb/authentication.rb', line 7 def self.login(nuid) result = JSON.parse(connection({ nuid: nuid }).post('/token')&.body) end |