Sha256: 3d4340af52e8a85dc6ee520298f31d85a38275c4582bd4d2dde2e16e9f2aa749
Contents?: true
Size: 994 Bytes
Versions: 2
Compression:
Stored size: 994 Bytes
Contents
class Fastly # customize cache handling. Best used with conditions. class CacheSetting < BelongsToServiceAndVersion attr_accessor :service_id, :name, :action, :cache_condition, :ttl, :stale_ttl ## # :attr: service_id # # The id of the service this belongs to. ## # :attr: version # # The number of the version this belongs to. ## # :attr: name # # The name of the gzip setting ## # :attr: action # # Allows for termination of execution and either cache, pass, or restart ## # :attr: ttl # # Sets the time to live ## # :attr: stale_ttl # # Sets the max time to live for stale (unreachable) objects ## # :attr: cache_condition # # Name of the cache condition used to test whether this settings object # should be used. private # needs an 's' at the end of the url def self.path self.to_s.split("::")[-1].underscore + "s" end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
fastly-1.1.1 | lib/fastly/cache_setting.rb |
fastly-1.1.0 | lib/fastly/cache_setting.rb |