Class: GnCrossmap::Stats
- Inherits:
-
Object
- Object
- GnCrossmap::Stats
- Defined in:
- lib/gn_crossmap/stats.rb
Overview
Collects statistics about crossmapping process
Instance Attribute Summary collapse
-
#stats ⇒ Object
Returns the value of attribute stats.
Instance Method Summary collapse
-
#initialize ⇒ Stats
constructor
A new instance of Stats.
Constructor Details
#initialize ⇒ Stats
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
#stats ⇒ Object
Returns the value of attribute stats.
6 7 8 |
# File 'lib/gn_crossmap/stats.rb', line 6 def stats @stats end |