Class: Brewer::Stats::Formatter

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeFormatter



7
8
9
# File 'lib/brewer/stats/formatter.rb', line 7

def initialize
  @log_contents = {}
end

Instance Attribute Details

#log_contentsObject

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_contentsObject



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

def get_log_contents
  @log_contents = YAML.load(File.open($log_file))
end