Class: EventMeter::Processor::Batch

Inherits:
Object
  • Object
show all
Defined in:
lib/event_meter/processor.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeBatch

Returns a new instance of Batch.



292
293
294
295
296
297
298
# File 'lib/event_meter/processor.rb', line 292

def initialize
  @rollups = Hash.new { |hash, key| hash[key] = Rollup.new }
  @state_updates = {}
  @entry_ids = []
  @interval_state = {}
  @malformed = 0
end

Instance Attribute Details

#entry_idsObject (readonly)

Returns the value of attribute entry_ids.



289
290
291
# File 'lib/event_meter/processor.rb', line 289

def entry_ids
  @entry_ids
end

#interval_stateObject (readonly)

Returns the value of attribute interval_state.



289
290
291
# File 'lib/event_meter/processor.rb', line 289

def interval_state
  @interval_state
end

#malformedObject

Returns the value of attribute malformed.



290
291
292
# File 'lib/event_meter/processor.rb', line 290

def malformed
  @malformed
end

#rollupsObject (readonly)

Returns the value of attribute rollups.



289
290
291
# File 'lib/event_meter/processor.rb', line 289

def rollups
  @rollups
end

#state_updatesObject (readonly)

Returns the value of attribute state_updates.



289
290
291
# File 'lib/event_meter/processor.rb', line 289

def state_updates
  @state_updates
end

Instance Method Details

#empty?Boolean

Returns:

  • (Boolean)


300
301
302
# File 'lib/event_meter/processor.rb', line 300

def empty?
  entry_ids.empty?
end