Class: Collective::Collector

Inherits:
Object
  • Object
show all
Extended by:
DSL
Defined in:
lib/collective/collector.rb,
lib/collective/collector/dsl.rb

Defined Under Namespace

Modules: DSL

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from DSL

collect, requires, resolution

Constructor Details

#initialize(options = {}) ⇒ Collector

Returns a new instance of Collector.



8
9
10
# File 'lib/collective/collector.rb', line 8

def initialize(options = {})
  @options = options
end

Instance Attribute Details

#optionsObject (readonly)

Returns the value of attribute options.



6
7
8
# File 'lib/collective/collector.rb', line 6

def options
  @options
end

Instance Method Details

#collect!Object



12
13
14
# File 'lib/collective/collector.rb', line 12

def collect!
  collect
end

#group(*args, &block) ⇒ Object



20
21
22
# File 'lib/collective/collector.rb', line 20

def group(*args, &block)
  Metrics.group(*args, &block)
end

#instrument(*args, &block) ⇒ Object



16
17
18
# File 'lib/collective/collector.rb', line 16

def instrument(*args, &block)
  Metrics.instrument(*args, &block)
end