class ExistClient::Reporter

Attributes

data_path[R]
plugin[R]
report_period[R]

Public Class Methods

metric_name() click to toggle source
# File lib/exist_client/reporter.rb, line 8
def self.metric_name
  str = name.split("::").last
  str.gsub!(/([A-Z\d]+)([A-Z][a-z])/, '\1_\2')
  str.gsub!(/([a-z\d])([A-Z])/, '\1_\2')
  str.tr!("-", "_")
  str.downcase!
end
new(report_period) click to toggle source
# File lib/exist_client/reporter.rb, line 16
def initialize(report_period)
  @report_period = report_period
  @plugin = Config.plugin_for(self.class)
  @data_path = Config.data_path_for(self.class)
end
setup() click to toggle source
# File lib/exist_client/reporter.rb, line 5
def self.setup
end