Module: CachePurgeApi

Included in:
CdnetworksClient
Defined in:
lib/cdnetworks-client/cache_purge_api.rb

Instance Method Summary collapse

Instance Method Details

#add_purge_credentials(options) ⇒ Object


14
15
16
17
18
19
# File 'lib/cdnetworks-client/cache_purge_api.rb', line 14

def add_purge_credentials(options)
  options[:userId] = @user
  options[:password] = @password

  options
end

#execute_cache_purge(options = {}) ⇒ Object


2
3
4
# File 'lib/cdnetworks-client/cache_purge_api.rb', line 2

def execute_cache_purge(options={})
  call(open_api_path("executeCachePurge"),add_purge_credentials(options))
end

#get_cache_domain_list(options = {}) ⇒ Object


6
7
8
# File 'lib/cdnetworks-client/cache_purge_api.rb', line 6

def get_cache_domain_list(options={})
  call(open_api_path("getCacheDomainList"),add_purge_credentials(options))
end

#open_api_path(command) ⇒ Object


10
11
12
# File 'lib/cdnetworks-client/cache_purge_api.rb', line 10

def open_api_path(command)
  "/OpenAPI/services/CachePurgeAPI/#{command}"
end