Module: Metova::Responders::HttpCacheResponder
- Included in:
- Metova::Responder
- Defined in:
- lib/metova/responders/http_cache_responder.rb
Instance Method Summary collapse
Instance Method Details
#initialize ⇒ Object
5 6 7 8 |
# File 'lib/metova/responders/http_cache_responder.rb', line 5 def initialize(*) super @_cache = .delete :cache end |
#to_json ⇒ Object
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 |