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


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>


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


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

has_attribute :id

#uploader_channel_idString


21
# File 'lib/yt/models/claim_history.rb', line 21

has_attribute :uploader_channel_id