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

Version Path
ids_please-2.3.0 lib/ids_please/grabbers.rb
ids_please-2.2.5 lib/ids_please/grabbers.rb
ids_please-2.2.4 lib/ids_please/grabbers.rb
ids_please-2.2.3 lib/ids_please/grabbers.rb
ids_please-2.2.2 lib/ids_please/grabbers.rb
ids_please-2.2.1 lib/ids_please/grabbers.rb