Class: Google::Apis::YoutubeV3::ChannelSnippet

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

Overview

Basic details about a channel, including title, description and thumbnails.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ ChannelSnippet

Returns a new instance of ChannelSnippet.



1803
1804
1805
# File 'generated/google/apis/youtube_v3/classes.rb', line 1803

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

Instance Attribute Details

#countryString

The country of the channel. Corresponds to the JSON property country

Returns:

  • (String)


1765
1766
1767
# File 'generated/google/apis/youtube_v3/classes.rb', line 1765

def country
  @country
end

#custom_urlString

The custom url of the channel. Corresponds to the JSON property customUrl

Returns:

  • (String)


1770
1771
1772
# File 'generated/google/apis/youtube_v3/classes.rb', line 1770

def custom_url
  @custom_url
end

#default_languageString

The language of the channel's default title and description. Corresponds to the JSON property defaultLanguage

Returns:

  • (String)


1775
1776
1777
# File 'generated/google/apis/youtube_v3/classes.rb', line 1775

def default_language
  @default_language
end

#descriptionString

The description of the channel. Corresponds to the JSON property description

Returns:

  • (String)


1780
1781
1782
# File 'generated/google/apis/youtube_v3/classes.rb', line 1780

def description
  @description
end

#localizedGoogle::Apis::YoutubeV3::ChannelLocalization

Channel localization setting Corresponds to the JSON property localized



1785
1786
1787
# File 'generated/google/apis/youtube_v3/classes.rb', line 1785

def localized
  @localized
end

#published_atString

The date and time that the channel was created. The value is specified in < a href="//www.w3.org/TR/NOTE-datetime">ISO 8601 format. Corresponds to the JSON property publishedAt

Returns:

  • (String)


1791
1792
1793
# File 'generated/google/apis/youtube_v3/classes.rb', line 1791

def published_at
  @published_at
end

#thumbnailsGoogle::Apis::YoutubeV3::ThumbnailDetails

Internal representation of thumbnails for a YouTube resource. Corresponds to the JSON property thumbnails



1796
1797
1798
# File 'generated/google/apis/youtube_v3/classes.rb', line 1796

def thumbnails
  @thumbnails
end

#titleString

The channel's title. Corresponds to the JSON property title

Returns:

  • (String)


1801
1802
1803
# File 'generated/google/apis/youtube_v3/classes.rb', line 1801

def title
  @title
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1808
1809
1810
1811
1812
1813
1814
1815
1816
1817
# File 'generated/google/apis/youtube_v3/classes.rb', line 1808

def update!(**args)
  @country = args[:country] if args.key?(:country)
  @custom_url = args[:custom_url] if args.key?(:custom_url)
  @default_language = args[:default_language] if args.key?(:default_language)
  @description = args[:description] if args.key?(:description)
  @localized = args[:localized] if args.key?(:localized)
  @published_at = args[:published_at] if args.key?(:published_at)
  @thumbnails = args[:thumbnails] if args.key?(:thumbnails)
  @title = args[:title] if args.key?(:title)
end