Sha256: ae1a426385bd22ed97353c50f27c858fc61078f3a063c346eb58e4f790541874

Contents?: true

Size: 406 Bytes

Versions: 8

Compression:

Stored size: 406 Bytes

Contents

class YouTubeG
  module Request #:nodoc:  
    class UserSearch < BaseSearch #:nodoc:      
      def initialize(params, options={})
        @url = base_url
        return @url << "#{options[:user]}/favorites" if params == :favorites
        @url << "#{params[:user]}/uploads" if params[:user]
      end

      private

      def base_url #:nodoc:
        super << "users/"
      end
    end
    
  end
end

Version data entries

8 entries across 8 versions & 4 rubygems

Version Path
ceritium-youtube-g-extra-0.0.0.1 lib/youtube_g/request/user_search.rb
ceritium-youtube-g2-0.4.9.1 lib/youtube_g/request/user_search.rb
msp-youtube-g-0.4.8.1 lib/youtube_g/request/user_search.rb
msp-youtube-g-0.4.8.3 lib/youtube_g/request/user_search.rb
msp-youtube-g-0.4.8.4 lib/youtube_g/request/user_search.rb
msp-youtube-g-0.4.8.6 lib/youtube_g/request/user_search.rb
msp-youtube-g-0.4.8.7 lib/youtube_g/request/user_search.rb
tmm1-youtube-g-0.4.9.1 lib/youtube_g/request/user_search.rb