Class: Yt::Collections::Resources
- Defined in:
- lib/yt/collections/resources.rb
Direct Known Subclasses
Annotations, Channels, DetailsSets, PlaylistItems, Playlists, Ratings, Snippets, Subscriptions, UserInfos, Videos
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(options = {}) ⇒ Resources
constructor
A new instance of Resources.
Constructor Details
#initialize(options = {}) ⇒ Resources
Returns a new instance of Resources.
6 7 8 9 |
# File 'lib/yt/collections/resources.rb', line 6 def initialize( = {}) @parent = [:parent] @auth = [:auth] end |
Class Method Details
.of(parent) ⇒ Object
11 12 13 |
# File 'lib/yt/collections/resources.rb', line 11 def self.of(parent) new parent: parent, auth: parent.auth end |