module Controls::Client::Threats
A module to encapsulate API methods related to threats and threat vectors @since API v1.0 @version v1.0.0
Public Instance Methods
threats(threat = nil)
click to toggle source
@param [String] threat the threat name to search for @return [String] a hash representing the specified threat
# File lib/controls/client/threats.rb, line 11 def threats(threat = nil) if threat get "/threats/#{threat}" else get '/threats' end end