class Hasta::CachedS3File

Implements Hasta's S3File interface for files retrieved from the cache

Public Class Methods

new(cached_file, s3_uri) click to toggle source
Calls superclass method
# File lib/hasta/cached_s3_file.rb, line 8
def initialize(cached_file, s3_uri)
  super(S3File.wrap(cached_file))
  @s3_uri = s3_uri
end

Public Instance Methods

key() click to toggle source
# File lib/hasta/cached_s3_file.rb, line 13
def key
  @s3_uri.path
end
s3_uri() click to toggle source
# File lib/hasta/cached_s3_file.rb, line 17
def s3_uri
  @s3_uri
end