class MetricaApi::Sections::Reporting

Reporting API

Attributes

session[R]

Public Class Methods

new(token) click to toggle source
# File lib/metrica_api/sections/reporting.rb, line 8
def initialize(token)
  @session = Session.new(token)
end

Public Instance Methods

data(params) click to toggle source
# File lib/metrica_api/sections/reporting.rb, line 12
def data(params)
  call('data', params)
end
drilldown(params) click to toggle source
# File lib/metrica_api/sections/reporting.rb, line 16
def drilldown(params)
  call('data/drilldown', params)
end

Private Instance Methods

call(method, params) click to toggle source
# File lib/metrica_api/sections/reporting.rb, line 24
def call(method, params)
  session.call({ api_section: 'stat', method: method }, params)
end