Class: Yt::Models::AssetSnippet
- Inherits:
-
Base
- Object
- Base
- 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
Returns the asset’s type.
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.
35 |
# File 'lib/yt/models/asset_snippet.rb', line 35 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.
39 |
# File 'lib/yt/models/asset_snippet.rb', line 39 has_attribute :isrc |
#iswc ⇒ String
Returns the ISWC (International Standard Musical Work Code) for this asset.
43 |
# File 'lib/yt/models/asset_snippet.rb', line 43 has_attribute :iswc |
#title ⇒ String
Returns the title of this asset.
31 |
# File 'lib/yt/models/asset_snippet.rb', line 31 has_attribute :title |
#type ⇒ String
Returns the asset’s type.
28 |
# File 'lib/yt/models/asset_snippet.rb', line 28 has_attribute :type |