Module: Yt::Associations::Videos

Defined in:
lib/yt/associations/videos.rb

Overview

Provides the ‘has_many :videos` method to YouTube resources, which allows to access only the videos that belong to a specific resource. YouTube resources with videos are: channels.

Instance Method Summary collapse

Instance Method Details

#videosObject



9
10
11
# File 'lib/yt/associations/videos.rb', line 9

def videos
  @videos ||= Collections::Videos.of self
end