Class: Expirer::Reporter
- Inherits:
-
Object
- Object
- Expirer::Reporter
- Defined in:
- lib/expirer/reporter.rb
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(repository) ⇒ Reporter
constructor
A new instance of Reporter.
- #report ⇒ Object
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
#report ⇒ Object
13 14 15 |
# File 'lib/expirer/reporter.rb', line 13 def report "#{datetime}: #{url}" end |