Class: Yt::Collections::Resources

Inherits:
Base
  • Object
show all
Defined in:
lib/yt/collections/resources.rb

Class Method Summary collapse

Instance Method Summary collapse

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(options = {})
  @parent = options[:parent]
  @auth = options[: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