Class: AdopsReportScrapper::AdxClient

Inherits:
BaseClient
  • Object
show all
Defined in:
lib/adops_report_scrapper/adx_client.rb

Overview

require option with network_id to be passed into constructor

Constant Summary collapse

API_NAME =
'adexchangeseller'
API_VERSION =
'v2.0'
CREDENTIAL_STORE_FILE =
"#{API_NAME}-oauth2.json"
API_SCOPE =
'https://www.googleapis.com/auth/adexchange.seller.readonly'

Instance Method Summary collapse

Methods inherited from BaseClient

#before_quit_with_error, #get_data, #initialize, #login, #logout

Constructor Details

This class inherits a constructor from AdopsReportScrapper::BaseClient

Instance Method Details

#date_supported?(date = nil) ⇒ Boolean

Returns:

  • (Boolean)


17
18
19
20
21
# File 'lib/adops_report_scrapper/adx_client.rb', line 17

def date_supported?(date = nil)
  _date = date || @date
  return true if _date < Date.today
  false
end