Sha256: d80d7c26820b824ecb9e6668bf1a89ca000f77ceef4caebfd61d4d22ccb57b45
Contents?: true
Size: 740 Bytes
Versions: 3
Compression:
Stored size: 740 Bytes
Contents
require 'alephant/logger' require 'alephant/broker/component' module Alephant module Broker module Request class Batch include Logger attr_reader :batch_id, :components 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 private def components_for(env) env.data['components'].map do |c| Component.new( c['component'], batch_id, c['options'] ) end end end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
alephant-broker-1.0.2 | lib/alephant/broker/request/batch.rb |
alephant-broker-1.0.1 | lib/alephant/broker/request/batch.rb |
alephant-broker-1.0.0 | lib/alephant/broker/request/batch.rb |