Class: GnCrossmap::Stats

Inherits:
Object
  • Object
show all
Defined in:
lib/gn_crossmap/stats.rb

Overview

Collects statistics about crossmapping process

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeStats

Returns a new instance of Stats.



8
9
10
11
12
13
14
# File 'lib/gn_crossmap/stats.rb', line 8

def initialize
  @stats = { status: :init, total_records: 0, ingested_records: 0,
             resolved_records: 0, ingestion_span: nil,
             resolution_span: nil, ingestion_start: nil,
             resolution_start: nil, resolution_stop: nil,
             last_batches_time: [], matches: match_types }
end

Instance Attribute Details

#statsObject

Returns the value of attribute stats.



6
7
8
# File 'lib/gn_crossmap/stats.rb', line 6

def stats
  @stats
end