Sha256: 8b75034e3226ce48b51529c15d4017267d5053c6c65a1f2cebbd0084ec7c405e

Contents?: true

Size: 648 Bytes

Versions: 15

Compression:

Stored size: 648 Bytes

Contents

class Ey::Core::Client
  class Real
    def get_addresses(params={})
      query = Ey::Core.paging_parameters(params)
      url   = params.delete("url")

      request(
        :params => params,
        :path   => "/addresses",
        :query  => query,
        :url    => url,
      )
    end
  end # Real
  class Mock
    def get_addresses(params={})
      extract_url_params!(params)

      headers, addresses_page = search_and_page(params, :addresses, search_keys: %w[provisioned_id ip_address server location])

      response(
        :body    => {"addresses" => addresses_page},
        :headers => headers
      )
    end
  end # Mock
end

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
ey-pro-cli-0.0.17 lib/vendor/core/ey-core/requests/get_addresses.rb
ey-pro-cli-0.0.16 lib/vendor/core/ey-core/requests/get_addresses.rb
ey-pro-cli-0.0.15 lib/vendor/core/ey-core/requests/get_addresses.rb
ey-pro-cli-0.0.14 lib/vendor/core/ey-core/requests/get_addresses.rb
ey-pro-cli-0.0.13 lib/vendor/core/ey-core/requests/get_addresses.rb
ey-pro-cli-0.0.12 lib/vendor/core/ey-core/requests/get_addresses.rb
ey-pro-cli-0.0.11 lib/vendor/core/ey-core/requests/get_addresses.rb
ey-pro-cli-0.0.10 lib/vendor/core/ey-core/requests/get_addresses.rb
ey-pro-cli-0.0.9 lib/vendor/core/ey-core/requests/get_addresses.rb
ey-pro-cli-0.0.8 lib/vendor/core/ey-core/requests/get_addresses.rb
ey-pro-cli-0.0.7 lib/vendor/core/ey-core/requests/get_addresses.rb
ey-pro-cli-0.0.6 lib/vendor/core/ey-core/requests/get_addresses.rb
ey-pro-cli-0.0.5 lib/vendor/core/ey-core/requests/get_addresses.rb
ey-pro-cli-0.0.4 lib/vendor/core/ey-core/requests/get_addresses.rb
ey-pro-cli-0.0.3 lib/vendor/core/ey-core/requests/get_addresses.rb