Class: Stratify::Archiver

Inherits:
Object
  • Object
show all
Defined in:
lib/stratify/archiver.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(collector) ⇒ Archiver

Returns a new instance of Archiver.



7
8
9
# File 'lib/stratify/archiver.rb', line 7

def initialize(collector)
  @collector = collector
end

Instance Attribute Details

#collectorObject (readonly)

Returns the value of attribute collector.



5
6
7
# File 'lib/stratify/archiver.rb', line 5

def collector
  @collector
end

Instance Method Details

#runObject



11
12
13
14
15
# File 'lib/stratify/archiver.rb', line 11

def run
  collect_activities
ensure
  record_collection_statistics
end