Class: TraceD::Client

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

Class Method Summary collapse

Class Method Details

.increment(stat) ⇒ Object



8
9
10
# File 'lib/traced/client.rb', line 8

def increment(stat)
  @client.increment(stat)
end

.set(client) ⇒ Object



4
5
6
# File 'lib/traced/client.rb', line 4

def set(client)
  @client = client
end

.time(stat) ⇒ Object



12
13
14
15
16
# File 'lib/traced/client.rb', line 12

def time(stat)
  @client.time(stat) do
    yield
  end
end