Class: Yt::Models::AssetSnippet

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

Overview

Provides methods to interact with YouTube ContentID assetSnippets.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(options = {}) ⇒ AssetSnippet


10
11
12
13
# File 'lib/yt/models/asset_snippet.rb', line 10

def initialize(options = {})
  @data = options.fetch(:data, {})
  @auth = options[:auth]
end

Instance Attribute Details

#authObject (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_idString


35
# File 'lib/yt/models/asset_snippet.rb', line 35

has_attribute :custom_id

#idString


17
# File 'lib/yt/models/asset_snippet.rb', line 17

has_attribute :id

#isrcString


39
# File 'lib/yt/models/asset_snippet.rb', line 39

has_attribute :isrc

#iswcString


43
# File 'lib/yt/models/asset_snippet.rb', line 43

has_attribute :iswc

#titleString


31
# File 'lib/yt/models/asset_snippet.rb', line 31

has_attribute :title

#typeString

Returns the asset’s type.


28
# File 'lib/yt/models/asset_snippet.rb', line 28

has_attribute :type