Class: Google::Apis::YoutubeV3::ChannelContentOwnerDetails
- Inherits:
-
Object
- Object
- Google::Apis::YoutubeV3::ChannelContentOwnerDetails
- 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
The contentOwnerDetails object encapsulates channel data that is relevant for YouTube Partners linked with the channel.
Instance Attribute Summary collapse
-
#content_owner ⇒ String
The ID of the content owner linked to the channel.
-
#time_linked ⇒ DateTime
The date and time when the channel was linked to the content owner.
Instance Method Summary collapse
-
#initialize(**args) ⇒ ChannelContentOwnerDetails
constructor
A new instance of ChannelContentOwnerDetails.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ ChannelContentOwnerDetails
Returns a new instance of ChannelContentOwnerDetails.
1223 1224 1225 |
# File 'lib/google/apis/youtube_v3/classes.rb', line 1223 def initialize(**args) update!(**args) end |
Instance Attribute Details
#content_owner ⇒ String
The ID of the content owner linked to the channel.
Corresponds to the JSON property contentOwner
1216 1217 1218 |
# File 'lib/google/apis/youtube_v3/classes.rb', line 1216 def content_owner @content_owner end |
#time_linked ⇒ DateTime
The date and time when the channel was linked to the content owner.
Corresponds to the JSON property timeLinked
1221 1222 1223 |
# File 'lib/google/apis/youtube_v3/classes.rb', line 1221 def time_linked @time_linked end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1228 1229 1230 1231 |
# File 'lib/google/apis/youtube_v3/classes.rb', line 1228 def update!(**args) @content_owner = args[:content_owner] if args.key?(:content_owner) @time_linked = args[:time_linked] if args.key?(:time_linked) end |