Module: BWAPI::Client::Projects::Demographics

Included in:
BWAPI::Client::Projects
Defined in:
lib/bwapi/client/projects/demographics.rb

Overview

Demographics module for projects/demographics endpoints

Instance Method Summary collapse

Instance Method Details

#demographics(project_id, metric, opts = {}) ⇒ Hash

Get top values for given metric and query id

Parameters:

  • project_id (Integer)

    Id of project

  • metric (String)

    Demographic metric

  • opts (Hash) (defaults to: {})

    options Hash of parameters

Options Hash (opts):

  • limit (Integer)

    The limit to return

  • filter (Hash)

    The filters to apply

Returns:

  • (Hash)

    All data downloads in project



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

def demographics(project_id, metric, opts = {})
  get "projects/#{project_id}/demographics/#{metric}", opts
end