Sha256: 870421f39dbd4ebce813a02409f0b3a6a93dfe1ddd7e3ebe981720ab9704e362

Contents?: true

Size: 525 Bytes

Versions: 73

Compression:

Stored size: 525 Bytes

Contents

module Fog
  module Network
    class OpenStack

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

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

    end
  end
end

Version data entries

73 entries across 73 versions & 10 rubygems

Version Path
cifrado-0.2.1 vendor/fog/lib/fog/openstack/requests/network/list_networks.rb
cifrado-0.2.0 vendor/fog/lib/fog/openstack/requests/network/list_networks.rb
fog-maestrodev-1.19.0.20140212012611 lib/fog/openstack/requests/network/list_networks.rb
fog-maestrodev-1.19.0.20140110004459 lib/fog/openstack/requests/network/list_networks.rb
fog-maestrodev-1.19.0.20140110003812 lib/fog/openstack/requests/network/list_networks.rb
fog-maestrodev-1.19.0.20140109202555 lib/fog/openstack/requests/network/list_networks.rb
fog-maestrodev-1.19.0.20140107192102 lib/fog/openstack/requests/network/list_networks.rb
fog-maestrodev-1.19.0.20140107142106 lib/fog/openstack/requests/network/list_networks.rb
fog-maestrodev-1.19.0.20131219203941 lib/fog/openstack/requests/network/list_networks.rb
fog-maestrodev-1.18.0.20131219193542 lib/fog/openstack/requests/network/list_networks.rb
fog-1.19.0 lib/fog/openstack/requests/network/list_networks.rb
fog-maestrodev-1.18.0.20131219033443 lib/fog/openstack/requests/network/list_networks.rb
fog-maestrodev-1.18.0.20131219032002 lib/fog/openstack/requests/network/list_networks.rb
fog-maestrodev-1.18.0.20131219030716 lib/fog/openstack/requests/network/list_networks.rb
fog-maestrodev-1.18.0.20131219022322 lib/fog/openstack/requests/network/list_networks.rb
fog-maestrodev-1.18.0.20131218202447 lib/fog/openstack/requests/network/list_networks.rb
fog-maestrodev-1.18.0.20131209091424 lib/fog/openstack/requests/network/list_networks.rb
fog-maestrodev-1.18.0.20131209090811 lib/fog/openstack/requests/network/list_networks.rb
fog-maestrodev-1.18.0.20131206115947 lib/fog/openstack/requests/network/list_networks.rb
fog-maestrodev-1.18.0.20131205181604 lib/fog/openstack/requests/network/list_networks.rb