module Popularity
Constants
- TYPES
- VERSION
Public Class Methods
search(*urls)
click to toggle source
# File lib/popularity.rb, line 20 def self.search(*urls) MultiSearch.new(:urls => urls) end
select_types(url)
click to toggle source
# File lib/popularity.rb, line 24 def self.select_types(url) # github.com stats only valid for github urls, etc selected_types = Popularity::TYPES.collect { |n| network = n.new(@url) network if network.valid? }.compact end