Class: Finch::Declator
- Inherits:
-
Object
- Object
- Finch::Declator
- Defined in:
- lib/finch.rb
Instance Attribute Summary collapse
-
#pings ⇒ Object
readonly
Returns the value of attribute pings.
Instance Method Summary collapse
-
#initialize ⇒ Declator
constructor
A new instance of Declator.
- #ping(name, opts) ⇒ Object
Constructor Details
#initialize ⇒ Declator
Returns a new instance of Declator.
60 61 62 |
# File 'lib/finch.rb', line 60 def initialize @pings = [] end |
Instance Attribute Details
#pings ⇒ Object (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 |