class Pulsedive::CLI::Threat
Public Instance Methods
get_by_id(id)
click to toggle source
# File lib/pulsedive/cli.rb, line 62 def get_by_id(id) with_error_handling do json = api.threat.get_by_id(id) puts JSON.pretty_generate(json) end end
get_by_name(name)
click to toggle source
# File lib/pulsedive/cli.rb, line 70 def get_by_name(name) with_error_handling do json = api.threat.get_by_name(name) puts JSON.pretty_generate(json) end end
get_linked_indicators_by_id(id)
click to toggle source
# File lib/pulsedive/cli.rb, line 86 def get_linked_indicators_by_id(id) with_error_handling do json = api.threat.get_linked_indicators_by_id(id) puts JSON.pretty_generate(json) end end
get_summary_by_id(id)
click to toggle source
# File lib/pulsedive/cli.rb, line 78 def get_summary_by_id(id) with_error_handling do json = api.threat.get_summary_by_id(id) puts JSON.pretty_generate(json) end end