class Graphs

Public Instance Methods

get_all_graph_ids_for(options) click to toggle source
# File lib/zapix/proxies/graphs.rb, line 4
def get_all_graph_ids_for(options)
  graphs_with_names_and_ids = []
  graphs = client.graph_get(options)

  graphs.each do |g|
    graphs_with_names_and_ids <<
      {
        'name' => g['name'],
        'id' => g['graphid']
      }
  end

  graphs_with_names_and_ids
end