Method: LS4::StatService#initialize

Defined in:
lib/ls4/service/stat.rb

#initializeStatService

Returns a new instance of StatService.



34
35
36
37
38
39
40
41
42
43
# File 'lib/ls4/service/stat.rb', line 34

def initialize
  @methods = {}
  public_methods.each {|name|
    if name =~ /^stat_(.*)$/
      @methods[$~[1]] = method(name)
    end
  }

  @start_time = Time.now
end