Class: Useless::Doc::Rack::Retriever::Standard::CacheItem
- Inherits:
-
Object
- Object
- Useless::Doc::Rack::Retriever::Standard::CacheItem
- Defined in:
- lib/useless/doc/rack/retriever.rb
Instance Attribute Summary collapse
-
#response_body ⇒ Object
Returns the value of attribute response_body.
-
#timestamp ⇒ Object
Returns the value of attribute timestamp.
Instance Method Summary collapse
-
#initialize(response_body, timestamp) ⇒ CacheItem
constructor
A new instance of CacheItem.
Constructor Details
#initialize(response_body, timestamp) ⇒ CacheItem
Returns a new instance of CacheItem.
52 53 54 |
# File 'lib/useless/doc/rack/retriever.rb', line 52 def initialize(response_body, ) @response_body, = response_body, end |
Instance Attribute Details
#response_body ⇒ Object
Returns the value of attribute response_body.
50 51 52 |
# File 'lib/useless/doc/rack/retriever.rb', line 50 def response_body @response_body end |
#timestamp ⇒ Object
Returns the value of attribute timestamp.
50 51 52 |
# File 'lib/useless/doc/rack/retriever.rb', line 50 def end |