Class: ActiveYoutube
- Inherits:
-
ActiveResource::Base
- Object
- ActiveResource::Base
- ActiveYoutube
- Includes:
- EntryInterfaceShim
- Defined in:
- lib/simple_youtube/active_youtube.rb
Direct Known Subclasses
Youtube::Playlist, Youtube::Standardfeed, Youtube::User, Youtube::Video
Class Method Summary collapse
Methods included from EntryInterfaceShim
Class Method Details
.find(args) ⇒ Object
11 12 13 14 15 16 |
# File 'lib/simple_youtube/active_youtube.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(format.decode(connection.get(path, headers).body)) end |