Method: Yt::Models::Resource#id

Defined in:
lib/yt/models/resource.rb

#idObject (readonly)



15
16
17
18
19
20
21
# File 'lib/yt/models/resource.rb', line 15

def id
  if @id.nil? && @match && @match[:kind] == :channel
    @id ||= fetch_channel_id
  else
    @id
  end
end