Class: Genba::Client::Reports

Inherits:
Object
  • Object
show all
Defined in:
lib/genba/client/reports.rb

Overview

Reports client

Instance Method Summary collapse

Constructor Details

#initialize(client) ⇒ Reports

Returns a new instance of Reports.



7
8
9
# File 'lib/genba/client/reports.rb', line 7

def initialize(client)
  @client = client
end

Instance Method Details

#publisher_raw_data(year = nil, params = {}, headers = {}) ⇒ Object



11
12
13
14
15
16
# File 'lib/genba/client/reports.rb', line 11

def publisher_raw_data(year = nil, params = {}, headers = {})
  payload = params.merge({
    Year: year || Time.now.strftime('%Y')
  })
  @client.rest_get_with_token('/report/publisher/rawdata', payload, headers)
end