Class: OTX::CVE

Inherits:
Base
  • Object
show all
Defined in:
lib/otx_ruby/cve.rb

Overview

Retrieve and parse into the appropriate object the reputation for an IP Address from the OTX System

Instance Method Summary collapse

Methods inherited from Base

#get, #initialize, #patch, #post

Constructor Details

This class inherits a constructor from OTX::Base

Instance Method Details

#get_general(cve) ⇒ OTX::Pulse

Download an individually identified IP Address Reputation and parse the output

Parameters:

  • cve (String)

    The CVE ID to check

Returns:



12
13
14
15
16
17
18
19
20
# File 'lib/otx_ruby/cve.rb', line 12

def get_general(cve)
  uri = "api/v1/indicators/cve/#{cve}/general"

  json_data = get(uri)

  general = OTX::Indicator::CVE::General.new(json_data)

  return general
end