Class: Timely::Formatter
- Inherits:
-
Object
- Object
- Timely::Formatter
- Defined in:
- lib/timely/formatter.rb
Direct Known Subclasses
Timely::Formats::Excel, Timely::Formats::Hash, Timely::Formats::Json
Instance Attribute Summary collapse
-
#options ⇒ Object
Returns the value of attribute options.
-
#report ⇒ Object
Returns the value of attribute report.
Instance Method Summary collapse
-
#initialize(report, options = {}) ⇒ Formatter
constructor
A new instance of Formatter.
- #to_s ⇒ Object
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, ={}) self.report = report self. = end |
Instance Attribute Details
#options ⇒ Object
Returns the value of attribute options.
4 5 6 |
# File 'lib/timely/formatter.rb', line 4 def @options end |
#report ⇒ Object
Returns the value of attribute report.
4 5 6 |
# File 'lib/timely/formatter.rb', line 4 def report @report end |
Instance Method Details
#to_s ⇒ Object
11 12 13 |
# File 'lib/timely/formatter.rb', line 11 def to_s "#<#{self.class.name} report: \"#{report.title}\">" end |