Class: Google::Apis::ContentV2_1::TimePeriod
- Inherits:
-
Object
- Object
- Google::Apis::ContentV2_1::TimePeriod
- 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
-
#end_time ⇒ String
The ending timestamp.
-
#start_time ⇒ String
The starting timestamp.
Instance Method Summary collapse
-
#initialize(**args) ⇒ TimePeriod
constructor
A new instance of TimePeriod.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ TimePeriod
Returns a new instance of TimePeriod.
14075 14076 14077 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 14075 def initialize(**args) update!(**args) end |
Instance Attribute Details
#end_time ⇒ String
The ending timestamp.
Corresponds to the JSON property endTime
14068 14069 14070 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 14068 def end_time @end_time end |
#start_time ⇒ String
The starting timestamp.
Corresponds to the JSON property startTime
14073 14074 14075 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 14073 def start_time @start_time end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
14080 14081 14082 14083 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 14080 def update!(**args) @end_time = args[:end_time] if args.key?(:end_time) @start_time = args[:start_time] if args.key?(:start_time) end |