Sha256: dba3a923ae5a095ebc79b6444e571eedd9b6edb704b59627778e8138fb569a1c
Contents?: true
Size: 596 Bytes
Versions: 4
Compression:
Stored size: 596 Bytes
Contents
require 'rubygems' require 'active_resource' require SimpleYoutube::ROOT + "/lib/simple_youtube/entry_interface_shim" class ActiveYoutube < ActiveResource::Base include EntryInterfaceShim self.site = "http://gdata.youtube.com/feeds/api" self.format = :xml 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 end
Version data entries
4 entries across 4 versions & 1 rubygems