Sha256: 516c1a97f736eb1e61b2810136bafc5ef37329cf0649f8674a0ec0eadf53ac5b
Contents?: true
Size: 546 Bytes
Versions: 31
Compression:
Stored size: 546 Bytes
Contents
require 'fog/core/collection' require '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
31 entries across 31 versions & 9 rubygems