Sha256: 67eec9411e9c244f019e9c59e114b4fe7acda146b905dcf93562722b34765b8b

Contents?: true

Size: 395 Bytes

Versions: 17

Compression:

Stored size: 395 Bytes

Contents

module Shutterbug
  module CacheManager
    class CacheEntry
      attr_accessor :key
      attr_accessor :url
      attr_accessor :preview_url

      def initialize(storage)
        @key = storage.filename
        @url = storage.url
        @preview_url = storage.url
      end

      def image_tag
        "<img src='#{self.preview_url}' alt='#{self.preview_url}'>"
      end
    end
  end
end

Version data entries

17 entries across 17 versions & 1 rubygems

Version Path
shutterbug-0.5.9 lib/shutterbug/cache_manager/cache_entry.rb
shutterbug-0.5.8 lib/shutterbug/cache_manager/cache_entry.rb
shutterbug-0.5.7 lib/shutterbug/cache_manager/cache_entry.rb
shutterbug-0.5.6 lib/shutterbug/cache_manager/cache_entry.rb
shutterbug-0.5.5 lib/shutterbug/cache_manager/cache_entry.rb
shutterbug-0.5.4 lib/shutterbug/cache_manager/cache_entry.rb
shutterbug-0.5.3 lib/shutterbug/cache_manager/cache_entry.rb
shutterbug-0.5.2 lib/shutterbug/cache_manager/cache_entry.rb
shutterbug-0.5.1 lib/shutterbug/cache_manager/cache_entry.rb
shutterbug-0.5.0 lib/shutterbug/cache_manager/cache_entry.rb
shutterbug-0.4.3 lib/shutterbug/cache_manager/cache_entry.rb
shutterbug-0.2.5 lib/shutterbug/cache_manager/cache_entry.rb
shutterbug-0.2.1 lib/shutterbug/cache_manager/cache_entry.rb
shutterbug-0.2.0 lib/shutterbug/cache_manager/cache_entry.rb
shutterbug-0.1.2 lib/shutterbug/cache_manager/cache_entry.rb
shutterbug-0.1.1 lib/shutterbug/cache_manager/cache_entry.rb
shutterbug-0.1.0 lib/shutterbug/cache_manager/cache_entry.rb