class Google::Apis::AnalyticsdataV1alpha::DateRange

A contiguous set of days: startDate, startDate + 1, …, endDate. Requests are allowed up to 4 date ranges.

Attributes

end_date[RW]

The inclusive end date for the query in the format `YYYY-MM-DD`. Cannot be before `start_date`. The format `NdaysAgo`, `yesterday`, or `today` is also accepted, and in that case, the date is inferred based on the property's reporting time zone. Corresponds to the JSON property `endDate` @return [String]

name[RW]

Assigns a name to this date range. The dimension `dateRange` is valued to this name in a report response. If set, cannot begin with `date_range_` or ` RESERVED_`. If not set, date ranges are named by their zero based index in the request: `date_range_0`, `date_range_1`, etc. Corresponds to the JSON property `name` @return [String]

start_date[RW]

The inclusive start date for the query in the format `YYYY-MM-DD`. Cannot be after `end_date`. The format `NdaysAgo`, `yesterday`, or `today` is also accepted, and in that case, the date is inferred based on the property's reporting time zone. Corresponds to the JSON property `startDate` @return [String]

Public Class Methods

new(**args) click to toggle source
# File lib/google/apis/analyticsdata_v1alpha/classes.rb, line 387
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File lib/google/apis/analyticsdata_v1alpha/classes.rb, line 392
def update!(**args)
  @end_date = args[:end_date] if args.key?(:end_date)
  @name = args[:name] if args.key?(:name)
  @start_date = args[:start_date] if args.key?(:start_date)
end