Class: Yt::Models::ClaimHistory
- Inherits:
-
Base
- Object
- Base
- Yt::Models::ClaimHistory
- Defined in:
- lib/yt/models/claim_history.rb
Overview
Provides methods to interact with YouTube ContentID claims.
Instance Method Summary collapse
-
#events ⇒ Array<String>
The list of events associated with the claim.
-
#id ⇒ String
The ID that YouTube assigns and uses to uniquely identify the claim.
-
#initialize(options = {}) ⇒ ClaimHistory
constructor
A new instance of ClaimHistory.
-
#uploader_channel_id ⇒ String
The unique YouTube channel ID of the channel to which the claimed video was uploaded.
Constructor Details
#initialize(options = {}) ⇒ ClaimHistory
Returns a new instance of ClaimHistory.
9 10 11 12 13 |
# File 'lib/yt/models/claim_history.rb', line 9 def initialize( = {}) @data = [:data] @id = [:id] @auth = [:auth] end |
Instance Method Details
#events ⇒ Array<String>
Returns the list of events associated with the claim.
24 25 26 |
# File 'lib/yt/models/claim_history.rb', line 24 has_attribute :events, from: :event do |event_info| event_info.map{|event| ClaimEvent.new data: event} end |
#id ⇒ String
Returns the ID that YouTube assigns and uses to uniquely identify the claim.
17 |
# File 'lib/yt/models/claim_history.rb', line 17 has_attribute :id |
#uploader_channel_id ⇒ String
Returns the unique YouTube channel ID of the channel to which the claimed video was uploaded.
21 |
# File 'lib/yt/models/claim_history.rb', line 21 has_attribute :uploader_channel_id |