Class: CachingMatcher::MatcherBase

Inherits:
Object
  • Object
show all
Defined in:
lib/caching_matcher/caching_matcher.rb

Direct Known Subclasses

BeCachedMatcher, BeExpiredMatcher

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(controller, path_arg) ⇒ MatcherBase

first argument: controller second arg: either a path string or hash of url options



6
7
8
9
# File 'lib/caching_matcher/caching_matcher.rb', line 6

def initialize(controller, path_arg)
  @controller = controller
  compute_cache_key(path_arg)
end

Instance Attribute Details

#cache_keyObject (readonly)

Returns the value of attribute cache_key.



11
12
13
# File 'lib/caching_matcher/caching_matcher.rb', line 11

def cache_key
  @cache_key
end