Sha256: ffd00f2b1b37af67d83d363536640361aca90f2d24d778bd5c3195842342bae9

Contents?: true

Size: 642 Bytes

Versions: 26

Compression:

Stored size: 642 Bytes

Contents

class Ey::Core::Client
  class Real
    def get_servers(params={})
      request(
        :params => params,
        :query  => Ey::Core.paging_parameters(params),
        :path   => "/servers",
        :url    => params.delete("url"),
      )
    end
  end # Real

  class Mock
    def get_servers(params={})
      extract_url_params!(params)

      headers, servers_page = search_and_page(params, :servers, search_keys: %w[account environment provider state private_hostname public_hostname provisioned_id role])

      response(
        :body    => {"servers" => servers_page},
        :headers => headers
      )
    end
  end # Mock
end

Version data entries

26 entries across 26 versions & 1 rubygems

Version Path
ey-core-3.6.4 lib/ey-core/requests/get_servers.rb
ey-core-3.6.3 lib/ey-core/requests/get_servers.rb
ey-core-3.6.1 lib/ey-core/requests/get_servers.rb
ey-core-3.5.0 lib/ey-core/requests/get_servers.rb
ey-core-3.4.4 lib/ey-core/requests/get_servers.rb
ey-core-3.4.2 lib/ey-core/requests/get_servers.rb
ey-core-3.4.1 lib/ey-core/requests/get_servers.rb
ey-core-3.4.0 lib/ey-core/requests/get_servers.rb
ey-core-3.3.1 lib/ey-core/requests/get_servers.rb
ey-core-3.3.0 lib/ey-core/requests/get_servers.rb
ey-core-3.2.6 lib/ey-core/requests/get_servers.rb
ey-core-3.2.5 lib/ey-core/requests/get_servers.rb
ey-core-3.2.4 lib/ey-core/requests/get_servers.rb
ey-core-3.2.3 lib/ey-core/requests/get_servers.rb
ey-core-3.2.2 lib/ey-core/requests/get_servers.rb
ey-core-3.2.1 lib/ey-core/requests/get_servers.rb
ey-core-3.2.0 lib/ey-core/requests/get_servers.rb
ey-core-3.1.11 lib/ey-core/requests/get_servers.rb
ey-core-3.1.10 lib/ey-core/requests/get_servers.rb
ey-core-3.1.9 lib/ey-core/requests/get_servers.rb