Sha256: a0c793a3224b5b991bd0cb9275f97fe081aab5adaa6c42e2d02230a765b45404

Contents?: true

Size: 407 Bytes

Versions: 3

Compression:

Stored size: 407 Bytes

Contents

class Ey::Core::Client
  class Real
    def get_firewall(params={})
      id  = params["id"]
      url = params["url"]

      request(
        :path => "firewalls/#{id}",
        :url  => url,
      )
    end
  end

  class Mock
    def get_firewall(params={})
      response(
        :body => {"firewall" => self.find(:firewalls, resource_identity(params))},
      )
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
ey-core-3.6.6 lib/ey-core/requests/get_firewall.rb
ey-core-3.4.5 lib/ey-core/requests/get_firewall.rb
ey-core-3.6.5 lib/ey-core/requests/get_firewall.rb