Sha256: 46e93ecae61065b41d490b5b22cead0dc1a45d5a3d2c4278060013294a7e3316

Contents?: true

Size: 454 Bytes

Versions: 11

Compression:

Stored size: 454 Bytes

Contents

require 'fog/core/collection'
require 'fog/serverlove/models/compute/server'

module Fog
  module Compute
    class Serverlove

      class Servers < Fog::Collection

        model Fog::Compute::Serverlove::Server

        def all
          data = connection.get_servers.body
          load(data)
        end

        def get(server_id)
          data = connection.get_server(server_id).body
          new(data)
        end

      end

    end
  end
end

Version data entries

11 entries across 11 versions & 7 rubygems

Version Path
fog-nirvanix-1.8.2 lib/fog/serverlove/models/compute/servers.rb
fog-nirvanix-1.8.1 lib/fog/serverlove/models/compute/servers.rb
fog-parser-fix-1.6.1 lib/fog/serverlove/models/compute/servers.rb
fog-test-again-1.6.0 lib/fog/serverlove/models/compute/servers.rb
fog-parser-fix-1.6.0 lib/fog/serverlove/models/compute/servers.rb
ey-vendored-backup-3.0.27 vendor/gems/fog/lib/fog/serverlove/models/compute/servers.rb
fog-sgonyea-1.8.1 lib/fog/serverlove/models/compute/servers.rb
fog-1.8.0 lib/fog/serverlove/models/compute/servers.rb
fog-maestrodev-1.7.0.20121114190951 lib/fog/serverlove/models/compute/servers.rb
fog-1.7.0 lib/fog/serverlove/models/compute/servers.rb
fog-1.6.0 lib/fog/serverlove/models/compute/servers.rb