Sha256: a4f8add69bd245c35dfcab14040da6d526aa243610b4ce40d35bc5a03c4193d1
Contents?: true
Size: 746 Bytes
Versions: 6
Compression:
Stored size: 746 Bytes
Contents
require_relative 'grabbers/base' require_relative 'grabbers/facebook' require_relative 'grabbers/vkontakte' require_relative 'grabbers/instagram' require_relative 'grabbers/twitter' require_relative 'grabbers/mailru' require_relative 'grabbers/google_plus' class IdsPlease module Grabbers NETWORKS = { facebook: IdsPlease::Grabbers::Facebook, vkontakte: IdsPlease::Grabbers::Vkontakte, twitter: IdsPlease::Grabbers::Twitter, instagram: IdsPlease::Grabbers::Instagram, mailru: IdsPlease::Grabbers::Mailru, google_plus: IdsPlease::Grabbers::GooglePlus } def self.each NETWORKS.values.each { |n| yield n } end def self.by_symbol(sym) NETWORKS[sym] end end end
Version data entries
6 entries across 6 versions & 1 rubygems