Module: Yt::Associations::Channels
- Defined in:
- lib/yt/associations/channels.rb
Overview
Provides the ‘has_one :channel` method to YouTube resources, which allows to access to channel-specific methods like. YouTube resources with a channel are: account.
Instance Method Summary collapse
Instance Method Details
#channel ⇒ Object
9 10 11 |
# File 'lib/yt/associations/channels.rb', line 9 def channel @channel ||= channels.first end |