Sha256: 378d9f77e9f73ba49c3560bc8e528b163842e46913e210ffd60229964eef0b22
Contents?: true
Size: 637 Bytes
Versions: 20
Compression:
Stored size: 637 Bytes
Contents
module Fog module OpenStack class Network class Real def get_network(network_id) request( :expects => [200], :method => 'GET', :path => "networks/#{network_id}" ) end end class Mock def get_network(network_id) response = Excon::Response.new if data = self.data[:networks][network_id] response.status = 200 response.body = {'network' => data} response else raise Fog::OpenStack::Network::NotFound end end end end end end
Version data entries
20 entries across 20 versions & 3 rubygems