Sha256: 35619dea99b65b03fccf496c7c583aef41a5e2b98ef5d366f0ffe45aa2bd23fe
Contents?: true
Size: 809 Bytes
Versions: 48
Compression:
Stored size: 809 Bytes
Contents
require 'fog/core/collection' require 'fog/rackspace/models/identity/user' module Fog module Rackspace class Identity class Users < Fog::Collection model Fog::Rackspace::Identity::User def all data = service.list_users.body['users'] load(data) end def get(user_id) data = service.get_user_by_id(user_id).body['user'] new(data) rescue Excon::Errors::NotFound nil rescue Excon::Errors::Unauthorized nil end def get_by_name(user_name) data = service.get_user_by_name(user_name).body['user'] new(data) rescue Excon::Errors::NotFound nil rescue Excon::Errors::Unauthorized nil end end end end end
Version data entries
48 entries across 48 versions & 3 rubygems