Class: Aptible::Auth::User

Inherits:
Resource
  • Object
show all
Defined in:
lib/aptible/auth/user.rb

Instance Method Summary collapse

Methods inherited from Resource

#namespace, #root_url

Instance Method Details

#operationsObject



22
23
24
25
# File 'lib/aptible/auth/user.rb', line 22

def operations
  # TODO: Implement query params for /operations
  []
end

#organizationsObject



16
17
18
19
20
# File 'lib/aptible/auth/user.rb', line 16

def organizations
  # Establish uniqueness of requests before loading all organizations
  # We can do this by reading the `organization` link for each role
  roles.map(&:links).map(&:organization).uniq(&:href).map(&:get)
end