Sha256: 3124d4bd8d94ae5e93c1841ad9bbd8ae3db1139cedfc5ba50dd76d49bf1d2ba2
Contents?: true
Size: 674 Bytes
Versions: 1
Compression:
Stored size: 674 Bytes
Contents
module Fog module Network class OpenStack class Real def get_floating_ip(floating_ip_id) request( :expects => [200], :method => 'GET', :path => "floatingips/#{floating_ip_id}" ) end end class Mock def get_floating_ip(floating_ip_id) response = Excon::Response.new if data = self.data[:floating_ips][floating_ip_id] response.status = 200 response.body = { 'floatingip' => data } response else raise Fog::Network::OpenStack::NotFound end end end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
fog-openstack-0.1.1 | lib/fog/openstack/requests/network/get_floating_ip.rb |