Sha256: 87bd8c5c8039e43842dabeb3e037f804599e8ec7f3edf65b4314e3132c8f7a0a
Contents?: true
Size: 586 Bytes
Versions: 6
Compression:
Stored size: 586 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(env = nil) return if env.nil? component_id = env.path.split('/')[2] || nil options = env.options raise InvalidAssetId.new("No Asset ID specified") if component_id.nil? @component = Component.new(component_id, nil, options) end end end end end
Version data entries
6 entries across 6 versions & 1 rubygems