Module: Metova::Responders::HttpCacheResponder

Included in:
Metova::Responder
Defined in:
lib/metova/responders/http_cache_responder.rb

Instance Method Summary collapse

Instance Method Details

#initializeObject



5
6
7
8
# File 'lib/metova/responders/http_cache_responder.rb', line 5

def initialize(*)
  super
  @_cache = options.delete :cache
end

#to_jsonObject



10
11
12
13
# File 'lib/metova/responders/http_cache_responder.rb', line 10

def to_json
  return if http_cache? and http_cache!
  to_format
end