Class: Finch::Declator

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeDeclator

Returns a new instance of Declator.



60
61
62
# File 'lib/finch.rb', line 60

def initialize
  @pings = []
end

Instance Attribute Details

#pingsObject (readonly)

Returns the value of attribute pings.



58
59
60
# File 'lib/finch.rb', line 58

def pings
  @pings
end

Instance Method Details

#ping(name, opts) ⇒ Object



64
65
66
67
# File 'lib/finch.rb', line 64

def ping(name, opts)
  pings << name
  Pinger.supervise_as(name, name, opts)
end