Class: Atompub::CacheResource

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

Constructor Details

#initialize(params) ⇒ CacheResource

Returns a new instance of CacheResource.



1145
1146
1147
1148
1149
# File 'lib/atomutil.rb', line 1145

def initialize(params)
  @etag          = params[:etag]
  @last_modified = params[:last_modified]
  @resource      = params[:rc]
end

Instance Attribute Details

#etagObject

Returns the value of attribute etag.



1144
1145
1146
# File 'lib/atomutil.rb', line 1144

def etag
  @etag
end

#last_modifiedObject

Returns the value of attribute last_modified.



1144
1145
1146
# File 'lib/atomutil.rb', line 1144

def last_modified
  @last_modified
end

#resourceObject

Returns the value of attribute resource.



1144
1145
1146
# File 'lib/atomutil.rb', line 1144

def resource
  @resource
end