Module: IdsPlease::Grabbers

Defined in:
lib/ids_please/grabbers.rb,
lib/ids_please/grabbers/base.rb,
lib/ids_please/grabbers/mailru.rb,
lib/ids_please/grabbers/twitter.rb,
lib/ids_please/grabbers/facebook.rb,
lib/ids_please/grabbers/instagram.rb,
lib/ids_please/grabbers/vkontakte.rb,
lib/ids_please/grabbers/google_plus.rb

Defined Under Namespace

Classes: Base, Facebook, GooglePlus, Instagram, Mailru, Twitter, Vkontakte

Constant Summary collapse

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
}

Class Method Summary collapse

Class Method Details

.by_symbol(sym) ⇒ Object



25
26
27
# File 'lib/ids_please/grabbers.rb', line 25

def self.by_symbol(sym)
  NETWORKS[sym]
end

.eachObject



21
22
23
# File 'lib/ids_please/grabbers.rb', line 21

def self.each
  NETWORKS.values.each { |n| yield n }
end