Sha256: eaa0460bfb1483374f14054ddcd17523102ede61c527e5e372612963b3edec42
Contents?: true
Size: 633 Bytes
Versions: 8
Compression:
Stored size: 633 Bytes
Contents
module Scrivito # TODO Caching: # unlimited urls: ewig # limited urls: zeitlimit - x (x fuer mindestverwendbarkeitszeit) class Blob class << self def configure(config) end def find(id) new(id) end end attr_reader :id def initialize(id) @id = id end def url raw_data["url"] end def content_type meta_data[:content_type] end def length meta_data[:content_length].to_i end private def raw_data @raw_data ||= CmsBackend.instance.find_blob_data_by_id(id) end def meta_data @meta_data ||= RestClient.head(raw_data["meta_url"]).headers end end end
Version data entries
8 entries across 8 versions & 1 rubygems