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.31 lib/fog/introspection/openstack/requests/list_rules.rb
fog-openstack-0.3.10 lib/fog/introspection/openstack/requests/list_rules.rb
fog-openstack-0.1.30 lib/fog/introspection/openstack/requests/list_rules.rb
fog-openstack-0.1.29 lib/fog/introspection/openstack/requests/list_rules.rb
fog-openstack-0.3.9 lib/fog/introspection/openstack/requests/list_rules.rb
fog-openstack-0.1.28 lib/fog/introspection/openstack/requests/list_rules.rb
fog-openstack-0.3.8 lib/fog/introspection/openstack/requests/list_rules.rb
fog-openstack-0.3.7 lib/fog/introspection/openstack/requests/list_rules.rb
fog-openstack-0.3.6 lib/fog/introspection/openstack/requests/list_rules.rb
fog-openstack-0.3.5 lib/fog/introspection/openstack/requests/list_rules.rb
fog-openstack-0.3.4 lib/fog/introspection/openstack/requests/list_rules.rb
fog-openstack-0.3.3 lib/fog/introspection/openstack/requests/list_rules.rb
fog-openstack-0.3.2 lib/fog/introspection/openstack/requests/list_rules.rb
fog-openstack-0.3.0 lib/fog/introspection/openstack/requests/list_rules.rb
fog-openstack-0.2.4 lib/fog/introspection/openstack/requests/list_rules.rb
fog-openstack-0.2.3 lib/fog/introspection/openstack/requests/list_rules.rb
fog-openstack-0.2.2 lib/fog/introspection/openstack/requests/list_rules.rb
fog-openstack-0.2.1 lib/fog/introspection/openstack/requests/list_rules.rb
fog-openstack-0.2.0 lib/fog/introspection/openstack/requests/list_rules.rb
fog-zj-0.1.28 lib/fog/introspection/openstack/requests/list_rules.rb