Class: Fastly::CacheSetting

Inherits:
BelongsToServiceAndVersion show all
Defined in:
lib/fastly/cache_setting.rb

Overview

customize cache handling. Best used with conditions.

Instance Attribute Summary collapse

Attributes inherited from BelongsToServiceAndVersion

#version

Attributes inherited from Base

#fetcher

Class Method Summary collapse

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

#actionObject

Returns the value of attribute action.



4
5
6
# File 'lib/fastly/cache_setting.rb', line 4

def action
  @action
end

#cache_conditionObject

Returns the value of attribute cache_condition.



4
5
6
# File 'lib/fastly/cache_setting.rb', line 4

def cache_condition
  @cache_condition
end

#nameObject

Returns the value of attribute name.



4
5
6
# File 'lib/fastly/cache_setting.rb', line 4

def name
  @name
end

#service_idObject

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_ttlObject

Returns the value of attribute stale_ttl.



4
5
6
# File 'lib/fastly/cache_setting.rb', line 4

def stale_ttl
  @stale_ttl
end

#ttlObject

Returns the value of attribute ttl.



4
5
6
# File 'lib/fastly/cache_setting.rb', line 4

def ttl
  @ttl
end

Class Method Details

.pathObject

: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