Module: AkamaiApi
- Defined in:
- lib/akamai_api.rb,
lib/akamai_api/ccu.rb,
lib/akamai_api/error.rb,
lib/akamai_api/version.rb,
lib/akamai_api/eccu_parser.rb,
lib/akamai_api/eccu_request.rb,
lib/akamai_api/unauthorized.rb,
lib/akamai_api/ccu/base_response.rb
Defined Under Namespace
Modules: CCU, CLI, ECCU
Classes: ECCUParser, ECCURequest, Error, Unauthorized
Constant Summary
collapse
- VERSION =
"0.4.1"
Class Method Summary
collapse
Class Method Details
.auth ⇒ Object
22
23
24
|
# File 'lib/akamai_api.rb', line 22
def self.auth
{ username: config[:auth].first, password: config[:auth].last }
end
|
.auth_empty? ⇒ Boolean
18
19
20
|
# File 'lib/akamai_api.rb', line 18
def self.auth_empty?
config[:auth].select { |v| v.blank? }.any?
end
|
.config ⇒ Object
8
9
10
11
12
13
14
15
16
|
# File 'lib/akamai_api.rb', line 8
def self.config
@config ||= {
:auth => [
ENV.fetch('AKAMAI_USERNAME', ''),
ENV.fetch('AKAMAI_PASSWORD', '')
],
:log => false
}
end
|