Sha256: 786d9988c8aeea3dd1e572bea2de486752eb4dc888bdd2bb4cae51a7323530d9

Contents?: true

Size: 526 Bytes

Versions: 4

Compression:

Stored size: 526 Bytes

Contents

require 'fog/core/collection'
require 'fog/compute/gridscale/models/server'
require 'fog/compute/gridscale/models/paging_collection'

module Fog
  module Compute
    class Gridscale
      class DeletedServers < Fog::Compute::Gridscale::PagingCollection
        model Fog::Compute::Gridscale::DeletedServer

        def all(filters={})
          data = service.deleted_servers_get(filters)
          deleted_servers = data.body["deleted_servers"].values
          load(deleted_servers)
        end

      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
fog-gridscale-0.1.5 lib/fog/compute/gridscale/models/deleted_servers.rb
fog-gridscale-0.1.4 lib/fog/compute/gridscale/models/deleted_servers.rb
fog-gridscale-0.1.3 lib/fog/compute/gridscale/models/deleted_servers.rb
fog-gridscale-0.1.2 lib/fog/compute/gridscale/models/deleted_servers.rb