Class: Spunk::Processor::Ping
- Inherits:
-
Object
- Object
- Spunk::Processor::Ping
- Defined in:
- lib/spunk/ping_parser.rb
Instance Method Summary collapse
Instance Method Details
#call(hash) ⇒ Object
4 5 6 7 8 |
# File 'lib/spunk/ping_parser.rb', line 4 def call(hash) if hash[:command] =~ /^PING$/ hash[:bot].("PONG :#{hash[:parameters]}") end end |