Class: Alephant::Broker::Request::Asset
- Inherits:
-
Object
- Object
- Alephant::Broker::Request::Asset
- Includes:
- Logger
- Defined in:
- lib/alephant/broker/request/asset.rb
Instance Attribute Summary collapse
-
#component ⇒ Object
readonly
Returns the value of attribute component.
Instance Method Summary collapse
-
#initialize(env) ⇒ Asset
constructor
A new instance of Asset.
Constructor Details
#initialize(env) ⇒ Asset
Returns a new instance of Asset.
13 14 15 16 17 18 19 20 21 22 23 24 25 |
# File 'lib/alephant/broker/request/asset.rb', line 13 def initialize(env) logger.info("Request::Asset#initialize(#{env.settings})") component_id = component_id_for env.path @component = Component.new( component_id, nil, env. ) logger.info("Request::Asset#initialize: id: #{component_id}") raise InvalidAssetId.new("No Asset ID specified") if component_id.nil? end |
Instance Attribute Details
#component ⇒ Object (readonly)
Returns the value of attribute component.
11 12 13 |
# File 'lib/alephant/broker/request/asset.rb', line 11 def component @component end |