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 = {}) ⇒ Hashie::Mash

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:

  • (Hashie::Mash) —

    All data downloads in project



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

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