Class: Google::Apis::AnalyticsdataV1beta::DateRange
- Inherits:
-
Object
- Object
- Google::Apis::AnalyticsdataV1beta::DateRange
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/analyticsdata_v1beta/classes.rb,
lib/google/apis/analyticsdata_v1beta/representations.rb,
lib/google/apis/analyticsdata_v1beta/representations.rb
Overview
A contiguous set of days: startDate, startDate + 1, ..., endDate. Requests are allowed up to 4 date ranges.
Instance Attribute Summary collapse
-
#end_date ⇒ String
The inclusive end date for the query in the format
YYYY-MM-DD. -
#name ⇒ String
Assigns a name to this date range.
-
#start_date ⇒ String
The inclusive 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.
Constructor Details
#initialize(**args) ⇒ DateRange
Returns a new instance of DateRange.
477 478 479 |
# File 'lib/google/apis/analyticsdata_v1beta/classes.rb', line 477 def initialize(**args) update!(**args) end |
Instance Attribute Details
#end_date ⇒ String
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
459 460 461 |
# File 'lib/google/apis/analyticsdata_v1beta/classes.rb', line 459 def end_date @end_date end |
#name ⇒ String
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
467 468 469 |
# File 'lib/google/apis/analyticsdata_v1beta/classes.rb', line 467 def name @name end |
#start_date ⇒ String
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
475 476 477 |
# File 'lib/google/apis/analyticsdata_v1beta/classes.rb', line 475 def start_date @start_date end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
482 483 484 485 486 |
# File 'lib/google/apis/analyticsdata_v1beta/classes.rb', line 482 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 |