Class: Lita::Handlers::VirusTotal
- Inherits:
-
Handler
- Object
- Handler
- Lita::Handlers::VirusTotal
- Defined in:
- lib/lita/handlers/virus_total.rb
Instance Method Summary collapse
Instance Method Details
#virus_total(response) ⇒ Object
20 21 22 23 24 25 26 27 28 29 30 |
# File 'lib/lita/handlers/virus_total.rb', line 20 def virus_total(response) match = response.match_data[:pattern] = case match when /\S+\.\S+/ url_report match else file_report match end response.reply end |