Class: StatHat::API

Inherits:
Object
  • Object
show all
Defined in:
lib/stathat.rb

Class Method Summary collapse

Class Method Details

.ez_post_count(stat_name, ezkey, count, timestamp = nil, &block) ⇒ Object



80
81
82
# File 'lib/stathat.rb', line 80

def ez_post_count(stat_name, ezkey, count, timestamp=nil, &block)
        Reporter.instance.ez_post_count(stat_name, ezkey, count, timestamp, block)
end

.ez_post_value(stat_name, ezkey, value, timestamp = nil, &block) ⇒ Object



76
77
78
# File 'lib/stathat.rb', line 76

def ez_post_value(stat_name, ezkey, value, timestamp=nil, &block)
        Reporter.instance.ez_post_value(stat_name, ezkey, value, timestamp, block)
end

.post_count(stat_key, user_key, count, timestamp = nil, &block) ⇒ Object



84
85
86
# File 'lib/stathat.rb', line 84

def post_count(stat_key, user_key, count, timestamp=nil, &block)
        Reporter.instance.post_count(stat_key, user_key, count, timestamp, block)
end

.post_value(stat_key, user_key, value, timestamp = nil, &block) ⇒ Object



88
89
90
# File 'lib/stathat.rb', line 88

def post_value(stat_key, user_key, value, timestamp=nil, &block)
        Reporter.instance.post_value(stat_key, user_key, value, timestamp, block)
end