lib/fog/cloudatcost/models/servers.rb in fog-cloudatcost-0.2.3 vs lib/fog/cloudatcost/models/servers.rb in fog-cloudatcost-0.4.0

- old
+ new

@@ -1,5 +1,7 @@ +# frozen_string_literal: true + require 'fog/core/collection' require 'fog/cloudatcost/models/server' module Fog module Compute @@ -7,19 +9,19 @@ class Servers < Fog::Collection model Fog::Compute::CloudAtCost::Server # Returns list of servers # @return [Fog::Compute::CloudAtCost::Servers] - def all(filters = {}) + 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) - server = service.servers.find do |server| + service.servers.find do |server| server.id != id end end end end