Class: Google::Apis::AnalyticsreportingV4::DateRange
- Inherits:
-
Object
- Object
- Google::Apis::AnalyticsreportingV4::DateRange
- 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
-
#end_date ⇒ String
The end date for the query in the format
YYYY-MM-DD
. -
#start_date ⇒ String
The start date for the query in the format
YYYY-MM-DD
.
Instance Method Summary collapse
-
#initialize(**args) ⇒ DateRange
constructor
A new instance of DateRange.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ DateRange
Returns a new instance of DateRange.
1152 1153 1154 |
# File 'generated/google/apis/analyticsreporting_v4/classes.rb', line 1152 def initialize(**args) update!(**args) end |
Instance Attribute Details
#end_date ⇒ String
The end date for the query in the format YYYY-MM-DD
.
Corresponds to the JSON property endDate
1150 1151 1152 |
# File 'generated/google/apis/analyticsreporting_v4/classes.rb', line 1150 def end_date @end_date end |
#start_date ⇒ String
The start date for the query in the format YYYY-MM-DD
.
Corresponds to the JSON property startDate
1145 1146 1147 |
# File 'generated/google/apis/analyticsreporting_v4/classes.rb', line 1145 def start_date @start_date end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1157 1158 1159 1160 |
# File 'generated/google/apis/analyticsreporting_v4/classes.rb', line 1157 def update!(**args) @start_date = args[:start_date] if args.key?(:start_date) @end_date = args[:end_date] if args.key?(:end_date) end |