Class: AdopsReportScrapper::RhythmoneClient

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

Instance Method Summary collapse

Methods inherited from BaseClient

#get_data, #initialize, #logout

Constructor Details

This class inherits a constructor from AdopsReportScrapper::BaseClient

Instance Method Details

#date_supported?(date = nil) ⇒ Boolean

Returns:

  • (Boolean)


7
8
9
10
11
# File 'lib/adops_report_scrapper/rhythmone_client.rb', line 7

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