Class: Alephant::Broker::Request::Batch

Inherits:
Object
  • Object
show all
Includes:
Logger
Defined in:
lib/alephant/broker/request/batch.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(component_factory, env) ⇒ Batch

Returns a new instance of Batch.



13
14
15
16
17
18
19
# File 'lib/alephant/broker/request/batch.rb', line 13

def initialize(component_factory, env)
  logger.info "Request::Batch#initialize: id: #{env.data['batch_id']}"

  @batch_id          = env.data['batch_id']
  @component_factory = component_factory
  @components        = components_for env
end

Instance Attribute Details

#batch_idObject (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

#componentsObject (readonly)

Returns the value of attribute components.



11
12
13
# File 'lib/alephant/broker/request/batch.rb', line 11

def components
  @components
end

#load_strategyObject (readonly)

Returns the value of attribute load_strategy.



11
12
13
# File 'lib/alephant/broker/request/batch.rb', line 11

def load_strategy
  @load_strategy
end