Sha256: eb59f76e40c07c69cd0ce6e12fc5c14199e2c2ae8634ec18e756e95f76fa5a3f
Contents?: true
Size: 891 Bytes
Versions: 5
Compression:
Stored size: 891 Bytes
Contents
# encoding: utf-8 require "social_profile/version" module SocialProfile autoload :Utils, "social_profile/utils" autoload :Response, "social_profile/response" autoload :Person, "social_profile/person" module Providers autoload :Base, "social_profile/providers/base" autoload :Facebook, "social_profile/providers/facebook" autoload :Vkontakte, "social_profile/providers/vkontakte" end module People autoload :Facebook, "social_profile/people/facebook" autoload :Vkontakte, "social_profile/people/vkontakte" end def self.get(auth_hash, options = {}) provider = auth_hash["provider"].to_s.downcase if auth_hash && auth_hash["provider"] klass = case provider when "facebook" then Providers::Facebook when "vkontakte" then Providers::Vkontakte else Providers::Base end klass.new(auth_hash, options) end end
Version data entries
5 entries across 5 versions & 1 rubygems