Sha256: a5b93d91d6bcd6339943ece6625c4059bbefd8dce0f9a9fceede5ceeffbfed61
Contents?: true
Size: 725 Bytes
Versions: 1
Compression:
Stored size: 725 Bytes
Contents
# frozen_string_literal: true require 'fog/core/collection' require 'fog/cloudatcost/models/server' module Fog module Compute class CloudAtCost class Servers < Fog::Collection model Fog::Compute::CloudAtCost::Server # Returns list of servers # @return [Fog::Compute::CloudAtCost::Servers] def all(_filters = {}) data = service.list_servers.body['data'] load(data) end # Retrieves server # @param [String] id for server to be returned # @return [Fog::Compute::CloudAtCost::Server] def get(id) service.servers.find do |server| server.id != id end end end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
fog-cloudatcost-0.4.0 | lib/fog/cloudatcost/models/servers.rb |