Class: Yt::Models::MatchPolicy

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

Overview

Provides methods to interact with YouTube ContentID asset match policies, which YouTube applies to user-uploaded videos that match the asset.

Instance Method Summary collapse

Constructor Details

#initialize(options = {}) ⇒ MatchPolicy

Returns a new instance of MatchPolicy.



9
10
11
12
# File 'lib/yt/models/match_policy.rb', line 9

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

Instance Method Details

#update(attributes = {}) ⇒ Object



14
15
16
17
18
# File 'lib/yt/models/match_policy.rb', line 14

def update(attributes = {})
  underscore_keys! attributes
  do_update body: attributes.slice(:policy_id)
  true
end