Class: Philiprehberger::HttpClient::Cache::CacheEntry
- Inherits:
-
Struct
- Object
- Struct
- Philiprehberger::HttpClient::Cache::CacheEntry
- Defined in:
- lib/philiprehberger/http_client/cache.rb
Overview
A cached entry with metadata for expiration and conditional requests.
Instance Attribute Summary collapse
-
#etag ⇒ Object
Returns the value of attribute etag.
-
#last_modified ⇒ Object
Returns the value of attribute last_modified.
-
#max_age ⇒ Object
Returns the value of attribute max_age.
-
#response ⇒ Object
Returns the value of attribute response.
-
#stored_at ⇒ Object
Returns the value of attribute stored_at.
Instance Attribute Details
#etag ⇒ Object
Returns the value of attribute etag
17 18 19 |
# File 'lib/philiprehberger/http_client/cache.rb', line 17 def etag @etag end |
#last_modified ⇒ Object
Returns the value of attribute last_modified
17 18 19 |
# File 'lib/philiprehberger/http_client/cache.rb', line 17 def last_modified @last_modified end |
#max_age ⇒ Object
Returns the value of attribute max_age
17 18 19 |
# File 'lib/philiprehberger/http_client/cache.rb', line 17 def max_age @max_age end |
#response ⇒ Object
Returns the value of attribute response
17 18 19 |
# File 'lib/philiprehberger/http_client/cache.rb', line 17 def response @response end |
#stored_at ⇒ Object
Returns the value of attribute stored_at
17 18 19 |
# File 'lib/philiprehberger/http_client/cache.rb', line 17 def stored_at @stored_at end |