Sha256: 2829fbd864039410faefe097fdad00a42492cc936ed2f2236e641c4dc7c5a01b
Contents?: true
Size: 566 Bytes
Versions: 1
Compression:
Stored size: 566 Bytes
Contents
require 'rackspace-fog/core/collection' require 'rackspace-fog/brightbox/models/compute/user' module Fog module Compute class Brightbox class Users < Fog::Collection model Fog::Compute::Brightbox::User def all data = connection.list_users load(data) end def get(identifier) return nil if identifier.nil? || identifier == "" data = connection.get_user(identifier) new(data) rescue Excon::Errors::NotFound nil end end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
rackspace-fog-1.4.2 | lib/rackspace-fog/brightbox/models/compute/users.rb |