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

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ ChannelSnippet

Returns a new instance of ChannelSnippet.


1752
1753
1754
# File 'generated/google/apis/youtube_v3/classes.rb', line 1752

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

Instance Attribute Details

#countryString

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

Returns:

  • (String)

1714
1715
1716
# File 'generated/google/apis/youtube_v3/classes.rb', line 1714

def country
  @country
end

#custom_urlString

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

Returns:

  • (String)

1719
1720
1721
# File 'generated/google/apis/youtube_v3/classes.rb', line 1719

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)

1724
1725
1726
# File 'generated/google/apis/youtube_v3/classes.rb', line 1724

def default_language
  @default_language
end

#descriptionString

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

Returns:

  • (String)

1729
1730
1731
# File 'generated/google/apis/youtube_v3/classes.rb', line 1729

def description
  @description
end

#localizedGoogle::Apis::YoutubeV3::ChannelLocalization

Channel localization setting Corresponds to the JSON property localized


1734
1735
1736
# File 'generated/google/apis/youtube_v3/classes.rb', line 1734

def localized
  @localized
end

#published_atDateTime

The date and time that the channel was created. The value is specified in ISO 8601 (YYYY-MM-DDThh:mm:ss.sZ) format. Corresponds to the JSON property publishedAt

Returns:

  • (DateTime)

1740
1741
1742
# File 'generated/google/apis/youtube_v3/classes.rb', line 1740

def published_at
  @published_at
end

#thumbnailsGoogle::Apis::YoutubeV3::ThumbnailDetails

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


1745
1746
1747
# File 'generated/google/apis/youtube_v3/classes.rb', line 1745

def thumbnails
  @thumbnails
end

#titleString

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

Returns:

  • (String)

1750
1751
1752
# File 'generated/google/apis/youtube_v3/classes.rb', line 1750

def title
  @title
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object


1757
1758
1759
1760
1761
1762
1763
1764
1765
1766
# File 'generated/google/apis/youtube_v3/classes.rb', line 1757

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