Class: Google::Apis::YoutubeV3::ChannelBannerResource

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/youtube_v3/classes.rb,
lib/google/apis/youtube_v3/representations.rb,
lib/google/apis/youtube_v3/representations.rb

Overview

A channel banner returned as the response to a channel_banner.insert call.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ ChannelBannerResource

Returns a new instance of ChannelBannerResource.



1123
1124
1125
# File 'lib/google/apis/youtube_v3/classes.rb', line 1123

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

Instance Attribute Details

#etagString

Corresponds to the JSON property etag

Returns:

  • (String)


1110
1111
1112
# File 'lib/google/apis/youtube_v3/classes.rb', line 1110

def etag
  @etag
end

#kindString

Identifies what kind of resource this is. Value: the fixed string "youtube# channelBannerResource". Corresponds to the JSON property kind

Returns:

  • (String)


1116
1117
1118
# File 'lib/google/apis/youtube_v3/classes.rb', line 1116

def kind
  @kind
end

#urlString

The URL of this banner image. Corresponds to the JSON property url

Returns:

  • (String)


1121
1122
1123
# File 'lib/google/apis/youtube_v3/classes.rb', line 1121

def url
  @url
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1128
1129
1130
1131
1132
# File 'lib/google/apis/youtube_v3/classes.rb', line 1128

def update!(**args)
  @etag = args[:etag] if args.key?(:etag)
  @kind = args[:kind] if args.key?(:kind)
  @url = args[:url] if args.key?(:url)
end