module Controls::Client::ThreatVectors

A module to encapsulate API methods related to threats and threat vectors @since API v1.0 @version v1.0.0

Public Instance Methods

threat_threat_vectors(threat) click to toggle source

@param [String] threat the threat to search for threat vectors by @return [Array<Hash>] a list of hashes representing threats

# File lib/controls/client/threat_vectors.rb, line 21
def threat_threat_vectors(threat)
  get "/threats/#{threat}/threat_vectors"
end
Also aliased as: threat_vectors_by_threat
threat_vectors(vector = nil) click to toggle source

@param [String] vector the threat vector to search for @return [String] a hash representing the specified threat vector

# File lib/controls/client/threat_vectors.rb, line 11
def threat_vectors(vector = nil)
  if vector
    get "/threat_vectors/#{vector}"
  else
    get '/threat_vectors'
  end
end
threat_vectors_by_threat(threat)