Sha256: 89a1602353aab604f26ffd223dd59014c0da75f5d7dbba22c1c7b4583833fa62
Contents?: true
Size: 617 Bytes
Versions: 3
Compression:
Stored size: 617 Bytes
Contents
require 'alephant/logger' require 'alephant/broker/component' require 'alephant/broker/errors/invalid_asset_id' module Alephant module Broker module Request class Asset include Logger attr_accessor :component def initialize(component_factory, env = nil) return if env.nil? component_id = env.path.split('/')[2] || nil raw_options = env.query raise InvalidAssetId.new("No Asset ID specified") if component_id.nil? @component = component_factory.create(component_id, nil, raw_options) end end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
alephant-broker-2.1.0 | lib/alephant/broker/request/asset.rb |
alephant-broker-2.0.3 | lib/alephant/broker/request/asset.rb |
alephant-broker-2.0.2 | lib/alephant/broker/request/asset.rb |