Class: Timely::Formatter

Inherits:
Object
  • Object
show all
Defined in:
lib/timely/formatter.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(report, options = {}) ⇒ Formatter

Returns a new instance of Formatter.



6
7
8
9
# File 'lib/timely/formatter.rb', line 6

def initialize(report, options={})
  self.report = report
  self.options = options
end

Instance Attribute Details

#optionsObject

Returns the value of attribute options.



4
5
6
# File 'lib/timely/formatter.rb', line 4

def options
  @options
end

#reportObject

Returns the value of attribute report.



4
5
6
# File 'lib/timely/formatter.rb', line 4

def report
  @report
end

Instance Method Details

#to_sObject



11
12
13
# File 'lib/timely/formatter.rb', line 11

def to_s
  "#<#{self.class.name} report: \"#{report.title}\">"
end