Class: Yt::Models::AssetSnippet
- Defined in:
- lib/yt/models/asset_snippet.rb
Overview
Provides methods to interact with YouTube ContentID assetSnippets.
Instance Attribute Summary collapse
-
#auth ⇒ Object
readonly
Returns the value of attribute auth.
Instance Method Summary collapse
-
#custom_id ⇒ String
The Custom ID assigned by the content owner to this asset.
-
#id ⇒ String
The ID that YouTube assigns and uses to uniquely identify the asset.
-
#initialize(options = {}) ⇒ AssetSnippet
constructor
A new instance of AssetSnippet.
-
#isrc ⇒ String
The ISRC (International Standard Recording Code) for this asset.
-
#iswc ⇒ String
The ISWC (International Standard Musical Work Code) for this asset.
-
#title ⇒ String
The title of this asset.
-
#type ⇒ String
The asset’s type.
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 = {}) ⇒ AssetSnippet
Returns a new instance of AssetSnippet.
10 11 12 13 |
# File 'lib/yt/models/asset_snippet.rb', line 10 def initialize( = {}) @data = .fetch(:data, {}) @auth = [:auth] end |
Instance Attribute Details
#auth ⇒ Object (readonly)
Returns the value of attribute auth.
8 9 10 |
# File 'lib/yt/models/asset_snippet.rb', line 8 def auth @auth end |
Instance Method Details
#custom_id ⇒ String
Returns the Custom ID assigned by the content owner to this asset.
34 |
# File 'lib/yt/models/asset_snippet.rb', line 34 has_attribute :custom_id |
#id ⇒ String
Returns the ID that YouTube assigns and uses to uniquely identify the asset.
17 |
# File 'lib/yt/models/asset_snippet.rb', line 17 has_attribute :id |
#isrc ⇒ String
Returns the ISRC (International Standard Recording Code) for this asset.
38 |
# File 'lib/yt/models/asset_snippet.rb', line 38 has_attribute :isrc |
#iswc ⇒ String
Returns the ISWC (International Standard Musical Work Code) for this asset.
42 |
# File 'lib/yt/models/asset_snippet.rb', line 42 has_attribute :iswc |
#title ⇒ String
Returns the title of this asset.
30 |
# File 'lib/yt/models/asset_snippet.rb', line 30 has_attribute :title |
#type ⇒ String
Returns the asset’s type. This value determines the metadata fields that you can set for the asset. In addition, certain API functions may only be supported for specific types of assets. For example, composition assets may have more complex ownership data than other types of assets. Valid values for this property are: art_track_video, composition, episode, general, movie, music_video, season, show, sound_recording, video_game, and web.
27 |
# File 'lib/yt/models/asset_snippet.rb', line 27 has_attribute :type |