Class: Yt::Models::ClaimHistory

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

Overview

Provides methods to interact with YouTube ContentID claims.

Instance Method Summary collapse

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(options = {})
  @data = options[:data]
  @id = options[:id]
  @auth = options[:auth]
end

Instance Method Details

#eventsArray<String>

Returns the list of events associated with the claim.

Returns:

  • (Array<String>)

    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

#idString

Returns the ID that YouTube assigns and uses to uniquely identify the claim.

Returns:

  • (String)

    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_idString

Returns the unique YouTube channel ID of the channel to which the claimed video was uploaded.

Returns:

  • (String)

    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