Module: Naver::Searchad::Api::Auth

Defined in:
lib/naver/searchad/api/auth.rb

Defined Under Namespace

Classes: CustomerAccountCredentials, DefaultCredentials

Class Method Summary collapse

Class Method Details

.const_missing(name) ⇒ Object



46
47
48
49
50
51
52
53
# File 'lib/naver/searchad/api/auth.rb', line 46

def self.const_missing(name)
  if name == :CustomerAcccountCredentials
    warn "DEPRECATION WARNING: `CustomerAcccountCredentials` is deprecated. Use `CustomerAccountCredentials` instead."
    CustomerAccountCredentials
  else
    super
  end
end

.get_application_defaultObject



69
70
71
# File 'lib/naver/searchad/api/auth.rb', line 69

def get_application_default
  DefaultCredentials.from_env
end