Class: Fozzie::Classes::AbstractFozzie
- Inherits:
-
Statsd
- Object
- Statsd
- Fozzie::Classes::AbstractFozzie
- Defined in:
- lib/fozzie/classes.rb
Instance Attribute Summary collapse
-
#prefix ⇒ Object
readonly
Returns the value of attribute prefix.
Instance Method Summary collapse
- #build ⇒ Object
- #built ⇒ Object
- #commit ⇒ Object
- #committed ⇒ Object
- #deploy ⇒ Object
- #deployed ⇒ Object
-
#initialize(host, port, prefix = nil) ⇒ AbstractFozzie
constructor
A new instance of AbstractFozzie.
- #time_for(stat, sample_rate = 1, &block) ⇒ Object
- #time_to_do(stat, sample_rate = 1, &block) ⇒ Object
Constructor Details
#initialize(host, port, prefix = nil) ⇒ AbstractFozzie
Returns a new instance of AbstractFozzie.
9 10 11 12 |
# File 'lib/fozzie/classes.rb', line 9 def initialize(host, port, prefix = nil) @namespace = prefix unless prefix.nil? super host, port end |
Instance Attribute Details
#prefix ⇒ Object (readonly)
Returns the value of attribute prefix.
7 8 9 |
# File 'lib/fozzie/classes.rb', line 7 def prefix @prefix end |
Instance Method Details
#build ⇒ Object
24 |
# File 'lib/fozzie/classes.rb', line 24 def build; built; end |
#built ⇒ Object
25 26 27 |
# File 'lib/fozzie/classes.rb', line 25 def built event :build end |
#commit ⇒ Object
20 21 22 |
# File 'lib/fozzie/classes.rb', line 20 def commit event :commit end |
#committed ⇒ Object
19 |
# File 'lib/fozzie/classes.rb', line 19 def committed; commit; end |
#deploy ⇒ Object
29 |
# File 'lib/fozzie/classes.rb', line 29 def deploy; deployed; end |
#deployed ⇒ Object
30 31 32 |
# File 'lib/fozzie/classes.rb', line 30 def deployed event :deploy end |
#time_for(stat, sample_rate = 1, &block) ⇒ Object
15 16 17 |
# File 'lib/fozzie/classes.rb', line 15 def time_for(stat, sample_rate=1, &block) time(stat, sample_rate, &block) end |
#time_to_do(stat, sample_rate = 1, &block) ⇒ Object
14 |
# File 'lib/fozzie/classes.rb', line 14 def time_to_do(stat, sample_rate=1, &block); time_for(stat, sample_rate, &block); end |