Class: Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaAccessDateRange

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

Overview

A contiguous range of days: startDate, startDate + 1, ..., endDate.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleAnalyticsAdminV1alphaAccessDateRange

Returns a new instance of GoogleAnalyticsAdminV1alphaAccessDateRange.



108
109
110
# File 'lib/google/apis/analyticsadmin_v1alpha/classes.rb', line 108

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

Instance Attribute Details

#end_dateString

The inclusive end date for the query in the format YYYY-MM-DD. Cannot be before startDate. The format NdaysAgo, yesterday, or today is also accepted, and in that case, the date is inferred based on the current time in the request's time zone. Corresponds to the JSON property endDate

Returns:

  • (String)


98
99
100
# File 'lib/google/apis/analyticsadmin_v1alpha/classes.rb', line 98

def end_date
  @end_date
end

#start_dateString

The inclusive start date for the query in the format YYYY-MM-DD. Cannot be after endDate. The format NdaysAgo, yesterday, or today is also accepted, and in that case, the date is inferred based on the current time in the request's time zone. Corresponds to the JSON property startDate

Returns:

  • (String)


106
107
108
# File 'lib/google/apis/analyticsadmin_v1alpha/classes.rb', line 106

def start_date
  @start_date
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



113
114
115
116
# File 'lib/google/apis/analyticsadmin_v1alpha/classes.rb', line 113

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