Class: Yt::Models::AssetMetadata
- Inherits:
-
Base
- Object
- Base
- Yt::Models::AssetMetadata
- Defined in:
- lib/yt/models/asset_metadata.rb
Overview
The AssetMetadata object specifies the metadata for an asset.
Instance Method Summary collapse
-
#custom_id ⇒ String
A unique value that you, the metadata provider, use to identify an asset.
-
#description ⇒ String
The ID that YouTube assigns and uses to uniquely identify the asset.
-
#initialize(options = {}) ⇒ AssetMetadata
constructor
A new instance of AssetMetadata.
-
#notes ⇒ String
A description of the asset.
-
#title ⇒ String
The asset’s title or name.
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( = {}) @data = [:data] end |
Instance Method Details
#custom_id ⇒ String
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.
16 17 18 |
# File 'lib/yt/models/asset_metadata.rb', line 16 def custom_id @data['customId'] end |
#description ⇒ String
Returns 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 |
#notes ⇒ String
Returns 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 |
#title ⇒ String
Returns The asset’s title or name.
21 22 23 |
# File 'lib/yt/models/asset_metadata.rb', line 21 def title @data['title'] end |