Class: Yt::Models::MatchPolicy
- Inherits:
-
Base
- Object
- Base
- Yt::Models::MatchPolicy
- 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
-
#initialize(options = {}) ⇒ MatchPolicy
constructor
A new instance of MatchPolicy.
- #update(attributes = {}) ⇒ Object
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( = {}) @asset_id = [:asset_id] @auth = [: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 |