Sha256: adffca8e7489b3dd4355c45d07321c5584397bd858b4f9d11e3b04e804d54735
Contents?: true
Size: 623 Bytes
Versions: 36
Compression:
Stored size: 623 Bytes
Contents
module Fog module Network class OpenStack class Real def get_extension(name) request( :expects => [200], :method => 'GET', :path => "extensions/#{name}" ) end end class Mock def get_extension(name) response = Excon::Response.new if data = self.data[:extensions][name] response.status = 200 response.body = {'extension' => data} response else raise Fog::Network::OpenStack::NotFound end end end end end end
Version data entries
36 entries across 34 versions & 3 rubygems