Class: Expirer::Reporter

Inherits:
Object
  • Object
show all
Defined in:
lib/expirer/reporter.rb

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(repository) ⇒ Reporter

Returns a new instance of Reporter.



9
10
11
# File 'lib/expirer/reporter.rb', line 9

def initialize(repository)
  @repository = repository
end

Class Method Details

.report(repository) ⇒ Object



5
6
7
# File 'lib/expirer/reporter.rb', line 5

def self.report(repository)
  new(repository).report
end

Instance Method Details

#reportObject



13
14
15
# File 'lib/expirer/reporter.rb', line 13

def report
  "#{datetime}: #{url}"
end