class Pulsedive::Threat

Public Instance Methods

get_by_id(tid) click to toggle source
# File lib/pulsedive/threat.rb, line 5
def get_by_id(tid)
  params = {
    "tid": tid
  }
  get("/api/info.php", params) { |json| json }
end
get_by_name(tname) click to toggle source
# File lib/pulsedive/threat.rb, line 12
def get_by_name(tname)
  params = {
    "tname": tname
  }
  get("/api/info.php", params) { |json| json }
end
get_linked_indicators_by_id(tld) click to toggle source
# File lib/pulsedive/threat.rb, line 29
def get_linked_indicators_by_id(tld)
  params = {
    "tid": tld,
    "get": "links"
  }
  get("/api/info.php", params) { |json| json }
end
get_summary_by_id(tld) click to toggle source
# File lib/pulsedive/threat.rb, line 19
def get_summary_by_id(tld)
  params = {
    "tid": tld,
    "get": "links",
    "summary": "1",
    "splitrisk": "1"
  }
  get("/api/info.php", params) { |json| json }
end