Sha256: 5aa753794475a2a5c82789bfcfa7679e5c056bfbb754f78cfdd1a314cfe0fe18

Contents?: true

Size: 545 Bytes

Versions: 7

Compression:

Stored size: 545 Bytes

Contents

module Fog
  module Network
    class OpenStack

      class Real
        def list_floating_ips(filters = {})
          request(
            :expects => 200,
            :method  => 'GET',
            :path    => 'floatingips',
            :query   => filters
          )
        end
      end

      class Mock
        def list_floating_ips(filters = {})
          Excon::Response.new(
            :body   => { 'floating_ips' => self.data[:floating_ips].values },
            :status => 200
          )
        end
      end

    end
  end
end

Version data entries

7 entries across 7 versions & 2 rubygems

Version Path
cifrado-0.2.1 vendor/fog/lib/fog/openstack/requests/network/list_floating_ips.rb
cifrado-0.2.0 vendor/fog/lib/fog/openstack/requests/network/list_floating_ips.rb
cifrado-0.1.3 vendor/fog/lib/fog/openstack/requests/network/list_floating_ips.rb
cifrado-0.1.2 vendor/fog/lib/fog/openstack/requests/network/list_floating_ips.rb
cifrado-0.1.1 vendor/fog/lib/fog/openstack/requests/network/list_floating_ips.rb
cifrado-0.1 vendor/fog/lib/fog/openstack/requests/network/list_floating_ips.rb
fog-1.9.0 lib/fog/openstack/requests/network/list_floating_ips.rb