Module: BWAPI::Client::CommandCenter::Projects::Data

Included in:
BWAPI::Client::CommandCenter::Projects
Defined in:
lib/bwapi/client/command_center/projects/data.rb

Overview

Data module for commandcenter/projects/project_id/data endpoints

Instance Method Summary collapse

Instance Method Details

#command_center_data(project_id, aggregate, dimension_one, dimension_two, opts = {}) ⇒ Object

Retrieve aggregate data and sample mentions broken down by specified dimensions

TODO: Add parameters documentation

Parameters:

  • project_id (Integer)

    Id of project

  • aggregate (String)

    Aggregate value

  • dimension_one (String)

    Dimension 1 value

  • dimension_two (String)

    Dimension 2 value



14
15
16
# File 'lib/bwapi/client/command_center/projects/data.rb', line 14

def command_center_data(project_id, aggregate, dimension_one, dimension_two, opts = {})
  get "commandcenter/projects/#{project_id}/data/#{aggregate}/#{dimension_one}/#{dimension_two}", opts
end