class ElasticAPM::CentralConfig::CacheControl

@api private

Attributes

max_age[R]
must_revalidate[R]
no_cache[R]
no_store[R]
no_transform[R]
private[R]
proxy_revalidate[R]
public[R]
s_maxage[R]

Public Class Methods

new(value) click to toggle source
# File lib/elastic_apm/central_config/cache_control.rb, line 24
def initialize(value)
  @header = value
  parse!(value)
end

Private Instance Methods

parse!(value) click to toggle source
# File lib/elastic_apm/central_config/cache_control.rb, line 43
def parse!(value)
  value.split(',').each do |token|
    k, v = token.split('=').map(&:strip)
    instance_variable_set(:"@#{k.tr('-', '_')}", v ? v.to_i : true)
  end
end