Class: Lotus::Action::Cache::CacheControl::Directives Private
- Inherits:
-
Object
- Object
- Lotus::Action::Cache::CacheControl::Directives
- Defined in:
- lib/lotus/action/cache/cache_control.rb
Overview
This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.
Class which stores CacheControl values
Instance Method Summary collapse
- #headers ⇒ Object private
-
#initialize(*values) ⇒ Directives
constructor
private
A new instance of Directives.
Constructor Details
#initialize(*values) ⇒ Directives
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Returns a new instance of Directives.
55 56 57 |
# File 'lib/lotus/action/cache/cache_control.rb', line 55 def initialize(*values) @directives = Lotus::Action::Cache::Directives.new(*values) end |
Instance Method Details
#headers ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
59 60 61 62 63 64 65 |
# File 'lib/lotus/action/cache/cache_control.rb', line 59 def headers if @directives.any? { HEADER => @directives.join(', ') } else {} end end |