Class: Google::Apis::ContentV2_1::TimePeriod

Inherits:
Object
  • Object
show all
Includes:
Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
Defined in:
lib/google/apis/content_v2_1/classes.rb,
lib/google/apis/content_v2_1/representations.rb,
lib/google/apis/content_v2_1/representations.rb

Overview

A message that represents a time period.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ TimePeriod

Returns a new instance of TimePeriod.



14037
14038
14039
# File 'lib/google/apis/content_v2_1/classes.rb', line 14037

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

Instance Attribute Details

#end_timeString

The ending timestamp. Corresponds to the JSON property endTime

Returns:

  • (String)


14030
14031
14032
# File 'lib/google/apis/content_v2_1/classes.rb', line 14030

def end_time
  @end_time
end

#start_timeString

The starting timestamp. Corresponds to the JSON property startTime

Returns:

  • (String)


14035
14036
14037
# File 'lib/google/apis/content_v2_1/classes.rb', line 14035

def start_time
  @start_time
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



14042
14043
14044
14045
# File 'lib/google/apis/content_v2_1/classes.rb', line 14042

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