Module: OmniAuth::Dingtalk::Client

Defined in:
lib/omniauth-dingtalk/client.rb,
lib/omniauth-dingtalk/client/base.rb,
lib/omniauth-dingtalk/client/enterprise_internal.rb,
lib/omniauth-dingtalk/client/third_party_personal.rb

Defined Under Namespace

Classes: Base, EnterpriseInternal, ThirdPartyPersonal

Class Method Summary collapse

Class Method Details

.get(client_type) ⇒ Object



9
10
11
12
13
14
15
16
# File 'lib/omniauth-dingtalk/client.rb', line 9

def self.get(client_type)
  case client_type.to_s
  when 'third_party_personal'
    ::OmniAuth::Dingtalk::Client::ThirdPartyPersonal
  else
    ::OmniAuth::Dingtalk::Client::EnterpriseInternal
  end
end