Class: FacebookDigitAuth::BestAuth

Inherits:
Object
  • Object
show all
Defined in:
lib/facebook_digit_auth.rb

Class Method Summary collapse

Class Method Details

.access_data(params, type) ⇒ Object



7
8
9
10
11
12
13
14
15
16
# File 'lib/facebook_digit_auth.rb', line 7

def self.access_data(params,type)
  if type == 'facebook'
    FacebookClient.new(params).data
  elsif type == 'digit'
    DigitsClient.new(params).data
  elsif type == 'google'

    GoogleAuthClient.new(params).data     
  end
end