class Fog::Scaleway::Account::Users

Public Instance Methods

all() click to toggle source
# File lib/fog/scaleway/models/account/users.rb, line 7
def all
  organizations = service.list_organizations.body['organizations'] || []
  users = organizations.flat_map { |o| o['users'] }
  load(users)
end
get(identity) click to toggle source
# File lib/fog/scaleway/models/account/users.rb, line 13
def get(identity)
  if (user = service.get_user(identity).body['user'])
    new(user)
  end
rescue Fog::Scaleway::Account::UnknownResource
  nil
end