class Google::Apis::AnalyticsreportingV4::DateRange

A contiguous set of days: startDate, startDate + 1 day, …, endDate. The start and end dates are specified in [ISO8601](en.wikipedia.org/wiki/ ISO_8601) date format `YYYY-MM-DD`.

Attributes

end_date[RW]

The end date for the query in the format `YYYY-MM-DD`. Corresponds to the JSON property `endDate` @return [String]

start_date[RW]

The start date for the query in the format `YYYY-MM-DD`. Corresponds to the JSON property `startDate` @return [String]

Public Class Methods

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

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

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