Class: Google::Apis::AnalyticsreportingV4::DateRange

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

Overview

A contiguous set of days: startDate, startDate + 1 day, ..., endDate. The start and end dates are specified in ISO8601 date format YYYY-MM-DD.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ DateRange

Returns a new instance of DateRange.



328
329
330
# File 'generated/google/apis/analyticsreporting_v4/classes.rb', line 328

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

Instance Attribute Details

#end_dateString

The end date for the query in the format YYYY-MM-DD. Corresponds to the JSON property endDate

Returns:

  • (String)


321
322
323
# File 'generated/google/apis/analyticsreporting_v4/classes.rb', line 321

def end_date
  @end_date
end

#start_dateString

The start date for the query in the format YYYY-MM-DD. Corresponds to the JSON property startDate

Returns:

  • (String)


326
327
328
# File 'generated/google/apis/analyticsreporting_v4/classes.rb', line 326

def start_date
  @start_date
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



333
334
335
336
# File 'generated/google/apis/analyticsreporting_v4/classes.rb', line 333

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