module Popularity

Constants

TYPES
VERSION

Public Class Methods

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