module Fog module Compute class Google class Mock def get_firewall(firewall_name) Fog::Mock.not_implemented end end class Real def get_firewall(firewall_name) api_method = @compute.firewalls.get parameters = { 'project' => @project, 'firewall' => firewall_name } result = self.build_result(api_method, parameters) response = self.build_response(result) end end end end end