Class: ActiveYoutube

Inherits:
ActiveResource::Base
  • Object
show all
Includes:
EntryInterfaceShim
Defined in:
lib/simple_youtube/activeyoutube.rb

Class Method Summary collapse

Methods included from EntryInterfaceShim

#entry

Class Method Details

.find(args) ⇒ Object



11
12
13
14
15
16
# File 'lib/simple_youtube/activeyoutube.rb', line 11

def self.find(args)
  scope, type, query = args[:scope], args[:type], args[:params]
  headers['Accept'] = "application/atom+xml"
  path = "#{prefix()}#{collection_name}#{'/' if scope}#{scope}#{'/' if type}#{type}#{query_string(query)}"
  instantiate_record(connection.get(path, headers)) 
end