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.



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

#etagObject

Returns the value of attribute etag.



1141
1142
1143
# File 'lib/atomutil.rb', line 1141

def etag
  @etag
end

#last_modifiedObject

Returns the value of attribute last_modified.



1141
1142
1143
# File 'lib/atomutil.rb', line 1141

def last_modified
  @last_modified
end

#resourceObject

Returns the value of attribute resource.



1141
1142
1143
# File 'lib/atomutil.rb', line 1141

def resource
  @resource
end