Class: Google::Apis::YoutubeAnalyticsV1::BatchReport::TimeSpan
- Inherits:
-
Object
- Object
- Google::Apis::YoutubeAnalyticsV1::BatchReport::TimeSpan
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/youtube_analytics_v1/classes.rb,
generated/google/apis/youtube_analytics_v1/representations.rb,
generated/google/apis/youtube_analytics_v1/representations.rb
Overview
Period included in the report. For reports containing all entities endTime is not set. Both startTime and endTime are inclusive.
Instance Attribute Summary collapse
-
#end_time ⇒ DateTime
End of the period included in the report.
-
#start_time ⇒ DateTime
Start of the period included in the report.
Instance Method Summary collapse
-
#initialize(**args) ⇒ TimeSpan
constructor
A new instance of TimeSpan.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ TimeSpan
Returns a new instance of TimeSpan.
122 123 124 |
# File 'generated/google/apis/youtube_analytics_v1/classes.rb', line 122 def initialize(**args) update!(**args) end |
Instance Attribute Details
#end_time ⇒ DateTime
End of the period included in the report. Inclusive. For reports containing
all entities endTime is not set.
Corresponds to the JSON property endTime
115 116 117 |
# File 'generated/google/apis/youtube_analytics_v1/classes.rb', line 115 def end_time @end_time end |
#start_time ⇒ DateTime
Start of the period included in the report. Inclusive.
Corresponds to the JSON property startTime
120 121 122 |
# File 'generated/google/apis/youtube_analytics_v1/classes.rb', line 120 def start_time @start_time end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
127 128 129 130 |
# File 'generated/google/apis/youtube_analytics_v1/classes.rb', line 127 def update!(**args) @end_time = args[:end_time] if args.key?(:end_time) @start_time = args[:start_time] if args.key?(:start_time) end |