Class: OTX::CorrelationRule

Inherits:
Base
  • Object
show all
Defined in:
lib/otx_ruby/correlation_rule.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(correlation_rule) ⇒ Object



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

def get_general(correlation_rule)
  uri = "/api/v1/indicators/correlation-rule/#{correlation_rule}/general"

  json_data = get(uri)

  general = OTX::Indicator::CorrelationRule.new(json_data)

  return general
end