Class: Brewer::Stats::Formatter
- Inherits:
-
Object
- Object
- Brewer::Stats::Formatter
- Defined in:
- lib/brewer/stats/formatter.rb
Instance Attribute Summary collapse
-
#log_contents ⇒ Object
Returns the value of attribute log_contents.
Instance Method Summary collapse
- #get_log_contents ⇒ Object
-
#initialize ⇒ Formatter
constructor
A new instance of Formatter.
Constructor Details
#initialize ⇒ Formatter
7 8 9 |
# File 'lib/brewer/stats/formatter.rb', line 7 def initialize @log_contents = {} end |
Instance Attribute Details
#log_contents ⇒ Object
Returns the value of attribute log_contents.
5 6 7 |
# File 'lib/brewer/stats/formatter.rb', line 5 def log_contents @log_contents end |
Instance Method Details
#get_log_contents ⇒ Object
11 12 13 |
# File 'lib/brewer/stats/formatter.rb', line 11 def get_log_contents @log_contents = YAML.load(File.open($log_file)) end |