Sha256: a0d7da7868253bc3bef5a0868d8a09cba11dbf01c9f063f4eb5ffaa3b202d05a
Contents?: true
Size: 564 Bytes
Versions: 1
Compression:
Stored size: 564 Bytes
Contents
# frozen_string_literal: true module Shodan module Clients class Alert < Base def create(name:, ip:) params = { name: name, filters: { ip: ip } } post("/shodan/alert", **params) end def delete_by_id(id) delete("/shodan/alert/#{id}") end def get_by_id(id) get("/shodan/alert/#{id}/info") end def info get("/shodan/alert/info") end def triggers get("/shodan/alert/triggers") end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
shodanx-0.2.1 | lib/shodan/clients/alert.rb |