Class: Yt::Models::AssetMetadata

Inherits:
Base
  • Object
show all
Defined in:
lib/yt/models/asset_metadata.rb

Overview

The AssetMetadata object specifies the metadata for an asset.

Instance Method Summary collapse

Constructor Details

#initialize(options = {}) ⇒ AssetMetadata

Returns a new instance of AssetMetadata.


8
9
10
# File 'lib/yt/models/asset_metadata.rb', line 8

def initialize(options = {})
  @data = options[:data]
end

Instance Method Details

#custom_idString

Returns 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.

Returns:

  • (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.


16
17
18
# File 'lib/yt/models/asset_metadata.rb', line 16

def custom_id
  @data['customId']
end

#descriptionString

Returns the ID that YouTube assigns and uses to uniquely identify the asset.

Returns:

  • (String)

    the ID that YouTube assigns and uses to uniquely identify the asset.


33
34
35
# File 'lib/yt/models/asset_metadata.rb', line 33

def description
  @data['description']
end

#notesString

Returns A description of the asset. The description may be displayed on YouTube or in CMS.

Returns:

  • (String)

    A description of the asset. The description may be displayed on YouTube or in CMS.


27
28
29
# File 'lib/yt/models/asset_metadata.rb', line 27

def notes
  @data['notes']
end

#titleString

Returns The asset's title or name.

Returns:

  • (String)

    The asset's title or name.


21
22
23
# File 'lib/yt/models/asset_metadata.rb', line 21

def title
  @data['title']
end