Sha256: 4f52c71426056c9ecce773956665fdac59d5a9bda4ae3b973e916f55abd14d5f

Contents?: true

Size: 470 Bytes

Versions: 47

Compression:

Stored size: 470 Bytes

Contents

module Fog
  module Introspection
    class OpenStack
      class Real
        def list_rules
          request(
            :expects => 200,
            :method  => 'GET',
            :path    => "rules"
          )
        end
      end

      class Mock
        def list_rules
          response = Excon::Response.new
          response.status = 200
          response.body = {"rules" => data[:rules].first}
          response
        end
      end
    end
  end
end

Version data entries

47 entries across 45 versions & 3 rubygems

Version Path
fog-openstack-0.1.9 lib/fog/openstack/requests/introspection/list_rules.rb
fog-openstack-0.1.8 lib/fog/openstack/requests/introspection/list_rules.rb
fog-openstack-0.1.7 lib/fog/openstack/requests/introspection/list_rules.rb
fog-openstack-0.1.6 lib/fog/openstack/requests/introspection/list_rules.rb
fog-openstack-0.1.5 lib/fog/openstack/requests/introspection/list_rules.rb
fog-openstack-0.1.4 lib/fog/openstack/requests/introspection/list_rules.rb
fog-openstack-0.1.3 lib/fog/openstack/requests/introspection/list_rules.rb