Module: CachePurgeApi
- Included in:
- CdnetworksClient
- Defined in:
- lib/cdnetworks-client/cache_purge_api.rb
Instance Method Summary collapse
- #add_purge_credentials(options) ⇒ Object
- #execute_cache_purge(options = {}) ⇒ Object
- #get_cache_domain_list(options = {}) ⇒ Object
- #open_api_path(command) ⇒ Object
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() [:userId] = @user [:password] = @password end |
#execute_cache_purge(options = {}) ⇒ Object
2 3 4 |
# File 'lib/cdnetworks-client/cache_purge_api.rb', line 2 def execute_cache_purge(={}) call(open_api_path("executeCachePurge"),add_purge_credentials()) 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(={}) call(open_api_path("getCacheDomainList"),add_purge_credentials()) 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 |