Module: Purgeable::HttpResource

Defined in:
lib/purgeable/http_resource.rb

Defined Under Namespace

Modules: ClassMethods

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.included(base) ⇒ Object



4
5
6
# File 'lib/purgeable/http_resource.rb', line 4

def self.included(base)
  base.extend ClassMethods
end

Instance Method Details

#purgeable_urlsObject



8
9
10
# File 'lib/purgeable/http_resource.rb', line 8

def purgeable_urls
  purge_generators.map{ |p| [p.is_a?(Symbol) ? send(p) : instance_eval(&p)] }.flatten.compact.uniq
end