Class: Google::Apis::YoutubeV3::SubscriptionSubscriberSnippet

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 subscription's subscriber including title, description, channel ID 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) ⇒ SubscriptionSubscriberSnippet

Returns a new instance of SubscriptionSubscriberSnippet



6576
6577
6578
# File 'generated/google/apis/youtube_v3/classes.rb', line 6576

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

Instance Attribute Details

#channel_idString

The channel ID of the subscriber. Corresponds to the JSON property channelId

Returns:

  • (String)


6559
6560
6561
# File 'generated/google/apis/youtube_v3/classes.rb', line 6559

def channel_id
  @channel_id
end

#descriptionString

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

Returns:

  • (String)


6564
6565
6566
# File 'generated/google/apis/youtube_v3/classes.rb', line 6564

def description
  @description
end

#thumbnailsGoogle::Apis::YoutubeV3::ThumbnailDetails

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



6569
6570
6571
# File 'generated/google/apis/youtube_v3/classes.rb', line 6569

def thumbnails
  @thumbnails
end

#titleString

The title of the subscriber. Corresponds to the JSON property title

Returns:

  • (String)


6574
6575
6576
# File 'generated/google/apis/youtube_v3/classes.rb', line 6574

def title
  @title
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



6581
6582
6583
6584
6585
6586
# File 'generated/google/apis/youtube_v3/classes.rb', line 6581

def update!(**args)
  @channel_id = args[:channel_id] if args.key?(:channel_id)
  @description = args[:description] if args.key?(:description)
  @thumbnails = args[:thumbnails] if args.key?(:thumbnails)
  @title = args[:title] if args.key?(:title)
end