Class: Miteru::Notifiers::UrlScan

Inherits:
Base show all
Defined in:
lib/miteru/notifiers/urlscan.rb

Instance Method Summary collapse

Methods inherited from Base

inherited, #name

Methods inherited from Service

call, #result, result

Instance Method Details

#call(kit) ⇒ Object

Parameters:



9
10
11
12
13
# File 'lib/miteru/notifiers/urlscan.rb', line 9

def call(kit)
  return unless callable?

  submit(kit.decoded_url, source: kit.source)
end

#callable?Boolean

Returns:

  • (Boolean)


15
16
17
# File 'lib/miteru/notifiers/urlscan.rb', line 15

def callable?
  !Miteru.config.urlscan_api_key.nil?
end