Class: Google::Apis::GmailpostmastertoolsV2::DateRanges

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/gmailpostmastertools_v2/classes.rb,
lib/google/apis/gmailpostmastertools_v2/representations.rb,
lib/google/apis/gmailpostmastertools_v2/representations.rb

Overview

A set of date ranges.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ DateRanges

Returns a new instance of DateRanges.



314
315
316
# File 'lib/google/apis/gmailpostmastertools_v2/classes.rb', line 314

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#date_rangesArray<Google::Apis::GmailpostmastertoolsV2::DateRange>

Required. The list of date ranges for which to retrieve data. Corresponds to the JSON property dateRanges



312
313
314
# File 'lib/google/apis/gmailpostmastertools_v2/classes.rb', line 312

def date_ranges
  @date_ranges
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



319
320
321
# File 'lib/google/apis/gmailpostmastertools_v2/classes.rb', line 319

def update!(**args)
  @date_ranges = args[:date_ranges] if args.key?(:date_ranges)
end