Class: Google::Apis::YoutubeV3::LiveStreamSnippet

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

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ LiveStreamSnippet

Returns a new instance of LiveStreamSnippet.


5193
5194
5195
# File 'generated/google/apis/youtube_v3/classes.rb', line 5193

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

Instance Attribute Details

#channel_idString

The ID that YouTube uses to uniquely identify the channel that is transmitting the stream. Corresponds to the JSON property channelId

Returns:

  • (String)

5169
5170
5171
# File 'generated/google/apis/youtube_v3/classes.rb', line 5169

def channel_id
  @channel_id
end

#descriptionString

The stream's description. The value cannot be longer than 10000 characters. Corresponds to the JSON property description

Returns:

  • (String)

5174
5175
5176
# File 'generated/google/apis/youtube_v3/classes.rb', line 5174

def description
  @description
end

#is_default_streamBoolean Also known as: is_default_stream?

Corresponds to the JSON property isDefaultStream

Returns:

  • (Boolean)

5179
5180
5181
# File 'generated/google/apis/youtube_v3/classes.rb', line 5179

def is_default_stream
  @is_default_stream
end

#published_atDateTime

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

Returns:

  • (DateTime)

5186
5187
5188
# File 'generated/google/apis/youtube_v3/classes.rb', line 5186

def published_at
  @published_at
end

#titleString

The stream's title. The value must be between 1 and 128 characters long. Corresponds to the JSON property title

Returns:

  • (String)

5191
5192
5193
# File 'generated/google/apis/youtube_v3/classes.rb', line 5191

def title
  @title
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object


5198
5199
5200
5201
5202
5203
5204
# File 'generated/google/apis/youtube_v3/classes.rb', line 5198

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