Class: Atompub::CacheResource
- Inherits:
-
Object
- Object
- Atompub::CacheResource
- Defined in:
- lib/atomutil.rb
Overview
Atompub::CacheResource
Cache resource that is stored by AbstractCache or it’s subclass. This class just has only three accessors.
-
etag
-
last_modofied
-
resource
Instance Attribute Summary collapse
-
#etag ⇒ Object
Returns the value of attribute etag.
-
#last_modified ⇒ Object
Returns the value of attribute last_modified.
-
#resource ⇒ Object
Returns the value of attribute resource.
Instance Method Summary collapse
-
#initialize(params) ⇒ CacheResource
constructor
A new instance of CacheResource.
Constructor Details
#initialize(params) ⇒ CacheResource
Returns a new instance of CacheResource.
1142 1143 1144 1145 1146 |
# File 'lib/atomutil.rb', line 1142 def initialize(params) @etag = params[:etag] @last_modified = params[:last_modified] @resource = params[:rc] end |
Instance Attribute Details
#etag ⇒ Object
Returns the value of attribute etag.
1141 1142 1143 |
# File 'lib/atomutil.rb', line 1141 def etag @etag end |
#last_modified ⇒ Object
Returns the value of attribute last_modified.
1141 1142 1143 |
# File 'lib/atomutil.rb', line 1141 def last_modified @last_modified end |
#resource ⇒ Object
Returns the value of attribute resource.
1141 1142 1143 |
# File 'lib/atomutil.rb', line 1141 def resource @resource end |