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
27 28 29 30 31 32 |
# File 'lib/pulsedive/cli.rb', line 27 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
35 36 37 38 39 40 |
# File 'lib/pulsedive/cli.rb', line 35 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
43 44 45 46 47 48 |
# File 'lib/pulsedive/cli.rb', line 43 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
51 52 53 54 55 56 |
# File 'lib/pulsedive/cli.rb', line 51 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 |