Class: Alephant::Broker::Request::Batch
- Inherits:
-
Object
- Object
- Alephant::Broker::Request::Batch
- Includes:
- Logger
- Defined in:
- lib/alephant/broker/request/batch.rb
Instance Attribute Summary collapse
-
#batch_id ⇒ Object
readonly
Returns the value of attribute batch_id.
-
#components ⇒ Object
readonly
Returns the value of attribute components.
Instance Method Summary collapse
-
#initialize(env) ⇒ Batch
constructor
A new instance of Batch.
Constructor Details
#initialize(env) ⇒ Batch
13 14 15 16 17 18 19 20 |
# File 'lib/alephant/broker/request/batch.rb', line 13 def initialize(env) logger.info("Request::Batch#initialize(#{env.settings})") @batch_id = env.data['batch_id'] @components = components_for env logger.info("Request::Batch#initialize: id: #{@batch_id}") end |
Instance Attribute Details
#batch_id ⇒ Object (readonly)
Returns the value of attribute batch_id.
11 12 13 |
# File 'lib/alephant/broker/request/batch.rb', line 11 def batch_id @batch_id end |
#components ⇒ Object (readonly)
Returns the value of attribute components.
11 12 13 |
# File 'lib/alephant/broker/request/batch.rb', line 11 def components @components end |