Class: Google::Apis::YoutubeAnalyticsV1::BatchReport::TimeSpan

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

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_timeDateTime

End of the period included in the report. Inclusive. For reports containing all entities endTime is not set. Corresponds to the JSON property endTime

Returns:

  • (DateTime)


115
116
117
# File 'generated/google/apis/youtube_analytics_v1/classes.rb', line 115

def end_time
  @end_time
end

#start_timeDateTime

Start of the period included in the report. Inclusive. Corresponds to the JSON property startTime

Returns:

  • (DateTime)


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