Class: OTX::NIDS

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

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(nid) ⇒ Object



3
4
5
6
7
8
9
10
11
# File 'lib/otx_ruby/nids.rb', line 3

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

  json_data = get(uri)

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

  return general
end