Sha256: ad1498b11528dc28810adb0316a1d5af705c4ce45c0fb755132c9d579cb321a6

Contents?: true

Size: 498 Bytes

Versions: 47

Compression:

Stored size: 498 Bytes

Contents

module Fog
  module Introspection
    class OpenStack
      class Real
        def get_rules(rule_id)
          request(
            :expects => 200,
            :method  => 'GET',
            :path    => "rules/#{rule_id}"
          )
        end
      end

      class Mock
        def get_rules(_rule_id)
          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/get_rules.rb
fog-openstack-0.3.10 lib/fog/introspection/openstack/requests/get_rules.rb
fog-openstack-0.1.30 lib/fog/introspection/openstack/requests/get_rules.rb
fog-openstack-0.1.29 lib/fog/introspection/openstack/requests/get_rules.rb
fog-openstack-0.3.9 lib/fog/introspection/openstack/requests/get_rules.rb
fog-openstack-0.1.28 lib/fog/introspection/openstack/requests/get_rules.rb
fog-openstack-0.3.8 lib/fog/introspection/openstack/requests/get_rules.rb
fog-openstack-0.3.7 lib/fog/introspection/openstack/requests/get_rules.rb
fog-openstack-0.3.6 lib/fog/introspection/openstack/requests/get_rules.rb
fog-openstack-0.3.5 lib/fog/introspection/openstack/requests/get_rules.rb
fog-openstack-0.3.4 lib/fog/introspection/openstack/requests/get_rules.rb
fog-openstack-0.3.3 lib/fog/introspection/openstack/requests/get_rules.rb
fog-openstack-0.3.2 lib/fog/introspection/openstack/requests/get_rules.rb
fog-openstack-0.3.0 lib/fog/introspection/openstack/requests/get_rules.rb
fog-openstack-0.2.4 lib/fog/introspection/openstack/requests/get_rules.rb
fog-openstack-0.2.3 lib/fog/introspection/openstack/requests/get_rules.rb
fog-openstack-0.2.2 lib/fog/introspection/openstack/requests/get_rules.rb
fog-openstack-0.2.1 lib/fog/introspection/openstack/requests/get_rules.rb
fog-openstack-0.2.0 lib/fog/introspection/openstack/requests/get_rules.rb
fog-zj-0.1.28 lib/fog/introspection/openstack/requests/get_rules.rb