class Yt::Models::AssetMetadata
The AssetMetadata
object specifies the metadata for an asset. @see developers.google.com/youtube/partner/docs/v1/assets#metadataMine
Public Class Methods
new(options = {})
click to toggle source
# File lib/yt/models/asset_metadata.rb, line 8 def initialize(options = {}) @data = options[:data] end
Public Instance Methods
custom_id()
click to toggle source
@return [String] A unique value that you, the metadata provider,
use to identify an asset. The value could be a unique ID that you created for the asset or a standard identifier, such as an ISRC.
# File lib/yt/models/asset_metadata.rb, line 16 def custom_id @data['customId'] end
description()
click to toggle source
@return [String] the ID that YouTube assigns and uses to uniquely
identify the asset.
# File lib/yt/models/asset_metadata.rb, line 33 def description @data['description'] end
notes()
click to toggle source
@return [String] A description of the asset. The description may be
displayed on YouTube or in CMS.
# File lib/yt/models/asset_metadata.rb, line 27 def notes @data['notes'] end
title()
click to toggle source
@return [String] The asset's title or name.
# File lib/yt/models/asset_metadata.rb, line 21 def title @data['title'] end