Class: Pulsedive::CLI::Feed

Inherits:
Base
  • Object
show all
Defined in:
lib/pulsedive/cli.rb

Instance Method Summary collapse

Instance Method Details

#get_by_id(id) ⇒ Object



96
97
98
99
100
101
# File 'lib/pulsedive/cli.rb', line 96

def get_by_id(id)
  with_error_handling do
    json = api.feed.get_by_id(id)
    puts JSON.pretty_generate(json)
  end
end

#get_linked_indicators_by_id(id) ⇒ Object



104
105
106
107
108
109
# File 'lib/pulsedive/cli.rb', line 104

def get_linked_indicators_by_id(id)
  with_error_handling do
    json = api.feed.get_linked_indicators_by_id(id)
    puts JSON.pretty_generate(json)
  end
end