Class: Google::Apis::YoutubeV3::LiveStreamSnippet
- Inherits:
-
Object
- Object
- Google::Apis::YoutubeV3::LiveStreamSnippet
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/youtube_v3/classes.rb,
generated/google/apis/youtube_v3/representations.rb,
generated/google/apis/youtube_v3/representations.rb
Instance Attribute Summary collapse
-
#channel_id ⇒ String
The ID that YouTube uses to uniquely identify the channel that is transmitting the stream.
-
#description ⇒ String
The stream's description.
-
#is_default_stream ⇒ Boolean
(also: #is_default_stream?)
Corresponds to the JSON property
isDefaultStream
. -
#published_at ⇒ DateTime
The date and time that the stream was created.
-
#title ⇒ String
The stream's title.
Instance Method Summary collapse
-
#initialize(**args) ⇒ LiveStreamSnippet
constructor
A new instance of LiveStreamSnippet.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ LiveStreamSnippet
Returns a new instance of LiveStreamSnippet
5080 5081 5082 |
# File 'generated/google/apis/youtube_v3/classes.rb', line 5080 def initialize(**args) update!(**args) end |
Instance Attribute Details
#channel_id ⇒ String
The ID that YouTube uses to uniquely identify the channel that is transmitting
the stream.
Corresponds to the JSON property channelId
5056 5057 5058 |
# File 'generated/google/apis/youtube_v3/classes.rb', line 5056 def channel_id @channel_id end |
#description ⇒ String
The stream's description. The value cannot be longer than 10000 characters.
Corresponds to the JSON property description
5061 5062 5063 |
# File 'generated/google/apis/youtube_v3/classes.rb', line 5061 def description @description end |
#is_default_stream ⇒ Boolean Also known as: is_default_stream?
Corresponds to the JSON property isDefaultStream
5066 5067 5068 |
# File 'generated/google/apis/youtube_v3/classes.rb', line 5066 def is_default_stream @is_default_stream end |
#published_at ⇒ DateTime
The date and time that the stream was created. The value is specified in ISO
8601 (YYYY-MM-DDThh:mm:ss.sZ) format.
Corresponds to the JSON property publishedAt
5073 5074 5075 |
# File 'generated/google/apis/youtube_v3/classes.rb', line 5073 def published_at @published_at end |
#title ⇒ String
The stream's title. The value must be between 1 and 128 characters long.
Corresponds to the JSON property title
5078 5079 5080 |
# File 'generated/google/apis/youtube_v3/classes.rb', line 5078 def title @title end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
5085 5086 5087 5088 5089 5090 5091 |
# File 'generated/google/apis/youtube_v3/classes.rb', line 5085 def update!(**args) @channel_id = args[:channel_id] if args.key?(:channel_id) @description = args[:description] if args.key?(:description) @is_default_stream = args[:is_default_stream] if args.key?(:is_default_stream) @published_at = args[:published_at] if args.key?(:published_at) @title = args[:title] if args.key?(:title) end |