Class: Google::Apis::GmailpostmastertoolsV2::TimeQuery

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

The date ranges or specific dates for which you want to retrieve data.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ TimeQuery

Returns a new instance of TimeQuery.



757
758
759
# File 'lib/google/apis/gmailpostmastertools_v2/classes.rb', line 757

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

Instance Attribute Details

#date_listGoogle::Apis::GmailpostmastertoolsV2::DateList

A set of specific dates. Corresponds to the JSON property dateList



750
751
752
# File 'lib/google/apis/gmailpostmastertools_v2/classes.rb', line 750

def date_list
  @date_list
end

#date_rangesGoogle::Apis::GmailpostmastertoolsV2::DateRanges

A set of date ranges. Corresponds to the JSON property dateRanges



755
756
757
# File 'lib/google/apis/gmailpostmastertools_v2/classes.rb', line 755

def date_ranges
  @date_ranges
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



762
763
764
765
# File 'lib/google/apis/gmailpostmastertools_v2/classes.rb', line 762

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