Sha256: 9c2446c096afab22d8fc101c309d4e4d4dbe7b67fefeeddd55a22af42db6fb89
Contents?: true
Size: 697 Bytes
Versions: 5
Compression:
Stored size: 697 Bytes
Contents
require 'alephant/broker/errors/invalid_cache_key' require 'alephant/logger' module Alephant module Broker module Response class Asset < Base include Logger attr_reader :component def initialize(component) @component = component super() end def setup loaded_content = load(component) @content = loaded_content[:body] @content_type = loaded_content[:content_type] @status = loaded_content[:status] @version = component.version.nil? ? 'not available' : component.version @cached = component.cached end end end end end
Version data entries
5 entries across 5 versions & 1 rubygems