Class: Fastly::CacheSetting
- Inherits:
-
BelongsToServiceAndVersion
- Object
- Base
- BelongsToServiceAndVersion
- Fastly::CacheSetting
- Defined in:
- lib/fastly/cache_setting.rb
Overview
customize cache handling. Best used with conditions.
Instance Attribute Summary collapse
-
#action ⇒ Object
Returns the value of attribute action.
-
#cache_condition ⇒ Object
Returns the value of attribute cache_condition.
-
#name ⇒ Object
Returns the value of attribute name.
-
#service_id ⇒ Object
Returns the value of attribute service_id.
-
#stale_ttl ⇒ Object
Returns the value of attribute stale_ttl.
-
#ttl ⇒ Object
Returns the value of attribute ttl.
Attributes inherited from BelongsToServiceAndVersion
Attributes inherited from Base
Class Method Summary collapse
-
.path ⇒ Object
:attr: cache_condition.
Methods inherited from BelongsToServiceAndVersion
#as_hash, delete_path, get_path, path_escape, post_path, put_path, #service, #version_number
Methods inherited from Base
#as_hash, #delete!, delete_path, get_path, #initialize, list_path, post_path, put_path, #require_api_key!, #save!
Constructor Details
This class inherits a constructor from Fastly::Base
Instance Attribute Details
#action ⇒ Object
Returns the value of attribute action.
4 5 6 |
# File 'lib/fastly/cache_setting.rb', line 4 def action @action end |
#cache_condition ⇒ Object
Returns the value of attribute cache_condition.
4 5 6 |
# File 'lib/fastly/cache_setting.rb', line 4 def cache_condition @cache_condition end |
#name ⇒ Object
Returns the value of attribute name.
4 5 6 |
# File 'lib/fastly/cache_setting.rb', line 4 def name @name end |
#service_id ⇒ Object
Returns the value of attribute service_id.
4 5 6 |
# File 'lib/fastly/cache_setting.rb', line 4 def service_id @service_id end |
#stale_ttl ⇒ Object
Returns the value of attribute stale_ttl.
4 5 6 |
# File 'lib/fastly/cache_setting.rb', line 4 def stale_ttl @stale_ttl end |
#ttl ⇒ Object
Returns the value of attribute ttl.
4 5 6 |
# File 'lib/fastly/cache_setting.rb', line 4 def ttl @ttl end |
Class Method Details
.path ⇒ Object
:attr: cache_condition
Name of the cache condition used to test whether this settings object should be used.
41 42 43 |
# File 'lib/fastly/cache_setting.rb', line 41 def self.path Util.class_to_path(self, true) end |