Class: VarnishClient
- Inherits:
-
Object
- Object
- VarnishClient
- Defined in:
- lib/varnishclient/request.rb,
lib/varnishclient/response.rb,
lib/varnishclient/varnishclient.rb
Overview
VarnishClient - A class that wraps Net::HTTP objects as Varnish clients.
Defined Under Namespace
Instance Attribute Summary collapse
-
#request ⇒ Object
Returns the value of attribute request.
-
#response ⇒ Object
Returns the value of attribute response.
Instance Method Summary collapse
-
#initialize ⇒ VarnishClient
constructor
A new instance of VarnishClient.
Constructor Details
#initialize ⇒ VarnishClient
Returns a new instance of VarnishClient.
13 14 15 16 |
# File 'lib/varnishclient/varnishclient.rb', line 13 def initialize @request = VarnishClient::Request.new @response = VarnishClient::Response.new end |
Instance Attribute Details
#request ⇒ Object
Returns the value of attribute request.
12 13 14 |
# File 'lib/varnishclient/varnishclient.rb', line 12 def request @request end |
#response ⇒ Object
Returns the value of attribute response.
12 13 14 |
# File 'lib/varnishclient/varnishclient.rb', line 12 def response @response end |