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

Constructor Details

#initialize(**args) ⇒ LiveStreamSnippet

Returns a new instance of LiveStreamSnippet.



4934
4935
4936
# File 'generated/google/apis/youtube_v3/classes.rb', line 4934

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)


4910
4911
4912
# File 'generated/google/apis/youtube_v3/classes.rb', line 4910

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)


4915
4916
4917
# File 'generated/google/apis/youtube_v3/classes.rb', line 4915

def description
  @description
end

#is_default_streamBoolean Also known as: is_default_stream?

Corresponds to the JSON property isDefaultStream

Returns:

  • (Boolean)


4920
4921
4922
# File 'generated/google/apis/youtube_v3/classes.rb', line 4920

def is_default_stream
  @is_default_stream
end

#published_atString

The date and time that the stream was created. The value is specified in ISO 8601 format. Corresponds to the JSON property publishedAt

Returns:

  • (String)


4927
4928
4929
# File 'generated/google/apis/youtube_v3/classes.rb', line 4927

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)


4932
4933
4934
# File 'generated/google/apis/youtube_v3/classes.rb', line 4932

def title
  @title
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



4939
4940
4941
4942
4943
4944
4945
# File 'generated/google/apis/youtube_v3/classes.rb', line 4939

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