Class: Ecfr::VarnishCacheService::Base

Inherits:
Base
  • Object
show all
Defined in:
lib/ecfr/varnish_cache_service/base.rb

Constant Summary

Constants inherited from Base

Base::SUPPORTED_ARRAY_ACCESSORS

Instance Attribute Summary

Attributes inherited from Base

#metadata, #request_data, #response_status, #results

Class Method Summary collapse

Methods inherited from Base

basic_auth_client_options, #each, #initialize, metadata, metadata_key, result_key

Methods included from Extensible

#inherited

Methods included from AttributeMethodDefinition

included, #initialize

Methods inherited from Client

build, cache_key, client, client_pool, delete, execute, get, handle_response, perform, post, purge

Methods included from ParallelClient

included

Constructor Details

This class inherits a constructor from Ecfr::Base

Class Method Details

.base_urlObject



8
9
10
# File 'lib/ecfr/varnish_cache_service/base.rb', line 8

def self.base_url
  Ecfr.config.varnish_cache_service_url
end

.expire(path) ⇒ Object



16
17
18
# File 'lib/ecfr/varnish_cache_service/base.rb', line 16

def self.expire(path)
  purge(path)
end

.expire_everythingObject



20
21
22
# File 'lib/ecfr/varnish_cache_service/base.rb', line 20

def self.expire_everything
  expire("/.*")
end

.service_nameObject



12
13
14
# File 'lib/ecfr/varnish_cache_service/base.rb', line 12

def self.service_name
  "Varnish Cache Service"
end