Class: Pulsedive::CLI::Indicator
Instance Method Summary collapse
- #get_by_id(id) ⇒ Object
- #get_by_value(value) ⇒ Object
- #get_links_by_id(id) ⇒ Object
- #get_properties_by_id(id) ⇒ Object
Instance Method Details
#get_by_id(id) ⇒ Object
28 29 30 31 32 33 |
# File 'lib/pulsedive/cli.rb', line 28 def get_by_id(id) with_error_handling do json = api.indicator.get_by_id(id) puts JSON.pretty_generate(json) end end |
#get_by_value(value) ⇒ Object
36 37 38 39 40 41 |
# File 'lib/pulsedive/cli.rb', line 36 def get_by_value(value) with_error_handling do json = api.indicator.get_by_value(value) puts JSON.pretty_generate(json) end end |
#get_links_by_id(id) ⇒ Object
44 45 46 47 48 49 |
# File 'lib/pulsedive/cli.rb', line 44 def get_links_by_id(id) with_error_handling do json = api.indicator.get_links_by_id(id) puts JSON.pretty_generate(json) end end |
#get_properties_by_id(id) ⇒ Object
52 53 54 55 56 57 |
# File 'lib/pulsedive/cli.rb', line 52 def get_properties_by_id(id) with_error_handling do json = api.indicator.get_properties_by_id(id) puts JSON.pretty_generate(json) end end |