Class: Naver::Searchad::Api::Auth::DefaultCredentials
- Inherits:
-
Object
- Object
- Naver::Searchad::Api::Auth::DefaultCredentials
- Defined in:
- lib/naver/searchad/api/auth.rb
Constant Summary collapse
- API_KEY_ENV_VAR =
'NAVER_API_KEY'.freeze
- API_SECRET_ENV_VAR =
'NAVER_API_SECRET'.freeze
- CUSTOMER_ID_ENV_VAR =
'NAVER_API_CLIENT_ID'.freeze
Class Method Summary collapse
Class Method Details
.from_env ⇒ Object
48 49 50 51 52 53 54 |
# File 'lib/naver/searchad/api/auth.rb', line 48 def self.from_env CustomerAcccountCredentials.new( ENV[API_KEY_ENV_VAR], ENV[API_SECRET_ENV_VAR], ENV[CUSTOMER_ID_ENV_VAR] ) end |