Sha256: 5f5a3d947fcb3e14f2ab7667fec188424c268448e5a3d2a1c35d608006a7e392
Contents?: true
Size: 637 Bytes
Versions: 17
Compression:
Stored size: 637 Bytes
Contents
module RailsConnector # TODO Caching: # unlimited urls: ewig # limited urls: zeitlimit - x (x fuer mindestverwendbarkeitszeit) class ServiceBlob 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.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
17 entries across 17 versions & 1 rubygems