Sha256: 41a1bcaefe12a5081055e092262c65925ae6a9123eba0f0a33230d23b75b82d4
Contents?: true
Size: 754 Bytes
Versions: 12
Compression:
Stored size: 754 Bytes
Contents
require 'alephant/logger' module Alephant module Broker module Response class Asset < Base include Logger def initialize(component) @component = component super component.status end def setup @headers = @component.headers @content = @component.content log if @component.is_a? Component end private def batched @component.batch_id.nil? ? '' : 'batched' end def details c = @component "#{c.id}/#{c.opts_hash}/#{c.headers} #{batched} #{c.options}" end def log logger.info "Broker: Component loaded! #{details} (200)" end end end end end
Version data entries
12 entries across 12 versions & 1 rubygems