Class: Philiprehberger::HttpClient::Cache::CacheEntry

Inherits:
Struct
  • Object
show all
Defined in:
lib/philiprehberger/http_client/cache.rb

Overview

A cached entry with metadata for expiration and conditional requests.

Instance Attribute Summary collapse

Instance Attribute Details

#etagObject

Returns the value of attribute etag

Returns:

  • (Object)

    the current value of etag



17
18
19
# File 'lib/philiprehberger/http_client/cache.rb', line 17

def etag
  @etag
end

#last_modifiedObject

Returns the value of attribute last_modified

Returns:

  • (Object)

    the current value of last_modified



17
18
19
# File 'lib/philiprehberger/http_client/cache.rb', line 17

def last_modified
  @last_modified
end

#max_ageObject

Returns the value of attribute max_age

Returns:

  • (Object)

    the current value of max_age



17
18
19
# File 'lib/philiprehberger/http_client/cache.rb', line 17

def max_age
  @max_age
end

#responseObject

Returns the value of attribute response

Returns:

  • (Object)

    the current value of response



17
18
19
# File 'lib/philiprehberger/http_client/cache.rb', line 17

def response
  @response
end

#stored_atObject

Returns the value of attribute stored_at

Returns:

  • (Object)

    the current value of stored_at



17
18
19
# File 'lib/philiprehberger/http_client/cache.rb', line 17

def stored_at
  @stored_at
end