Sha256: 1e38d86895caf5989a71cff8f941f061a7e1d3bd353fd77f0d091b5e3bcc631b

Contents?: true

Size: 491 Bytes

Versions: 7

Compression:

Stored size: 491 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 = nil)
          data = connection.get_user(identifier)
          new(data)
        rescue Excon::Errors::NotFound
          nil
        end
      end

    end
  end
end

Version data entries

7 entries across 7 versions & 5 rubygems

Version Path
fog-nirvanix-1.8.2 lib/fog/brightbox/models/compute/users.rb
fog-nirvanix-1.8.1 lib/fog/brightbox/models/compute/users.rb
ey-vendored-backup-3.0.27 vendor/gems/fog/lib/fog/brightbox/models/compute/users.rb
fog-sgonyea-1.8.1 lib/fog/brightbox/models/compute/users.rb
fog-1.8.0 lib/fog/brightbox/models/compute/users.rb
fog-maestrodev-1.7.0.20121114190951 lib/fog/brightbox/models/compute/users.rb
fog-1.7.0 lib/fog/brightbox/models/compute/users.rb