Class: Fozzie::BulkDsl

Inherits:
Object
  • Object
show all
Includes:
Interface
Defined in:
lib/fozzie/bulk_dsl.rb

Instance Method Summary collapse

Methods included from Interface

#build, #built, #bulk, #commit, #committed, #count, #decrement, #deploy, #deployed, #event, #gauge, #increment, #increment_on, #time, #time_for, #time_to_do, #timing

Constructor Details

#initialize(&block) ⇒ BulkDsl

Returns a new instance of BulkDsl.



5
6
7
8
9
# File 'lib/fozzie/bulk_dsl.rb', line 5

def initialize(&block)
  @metrics = []
  block.arity < 1 ? instance_eval(&block) : block.call(self) if block_given?
  send_bulk
end