Class: Yt::Models::ContentOwnerDetail
- Defined in:
- lib/yt/models/content_owner_detail.rb
Overview
Encapsulates channel data that is relevant for YouTube Partners linked with the channel.
Instance Method Summary collapse
-
#content_owner ⇒ String?
Returns the name of the content owner linked to the channel.
-
#initialize(options = {}) ⇒ ContentOwnerDetail
constructor
A new instance of ContentOwnerDetail.
-
#linked_at ⇒ Time?
Returns the date and time of when the channel was linked to the content owner.
Methods included from Associations::HasReports
Methods included from Associations::HasViewerPercentages
Methods included from Associations::HasOne
Methods included from Associations::HasMany
Methods included from Associations::HasAuthentication
Constructor Details
#initialize(options = {}) ⇒ ContentOwnerDetail
Returns a new instance of ContentOwnerDetail.
9 10 11 |
# File 'lib/yt/models/content_owner_detail.rb', line 9 def initialize( = {}) @data = [:data] || {} end |
Instance Method Details
#content_owner ⇒ String?
Returns the name of the content owner linked to the channel.
This method requires auth to return an authenticated instance of Yt::Models::ContentOwner that can administer the channel.
24 |
# File 'lib/yt/models/content_owner_detail.rb', line 24 has_attribute :content_owner |
#linked_at ⇒ Time?
Returns the date and time of when the channel was linked to the content owner.
This method requires auth to return an authenticated instance of Yt::Models::ContentOwner that can administer the channel.
38 |
# File 'lib/yt/models/content_owner_detail.rb', line 38 has_attribute :linked_at, type: Time, from: :time_linked |