Module: CacheFlushOpenApi
- Included in:
- CdnetworksClient
- Defined in:
- lib/cdnetworks-client/cache_flush_open_api.rb
Instance Method Summary collapse
- #add_flush_credentials(options) ⇒ Object
- #cache_flush_path(command) ⇒ Object
- #do_purge(options = {}) ⇒ Object
- #pad_list(options = {}) ⇒ Object
- #status(options = {}) ⇒ Object
Instance Method Details
#add_flush_credentials(options) ⇒ Object
19 20 21 22 23 24 |
# File 'lib/cdnetworks-client/cache_flush_open_api.rb', line 19 def add_flush_credentials() [:user] = @user [:pass] = @password end |
#cache_flush_path(command) ⇒ Object
15 16 17 |
# File 'lib/cdnetworks-client/cache_flush_open_api.rb', line 15 def cache_flush_path(command) "/purge/rest/#{command}" end |
#do_purge(options = {}) ⇒ Object
3 4 5 |
# File 'lib/cdnetworks-client/cache_flush_open_api.rb', line 3 def do_purge(={}) call(cache_flush_path("doPurge"),add_flush_credentials()) end |
#pad_list(options = {}) ⇒ Object
7 8 9 |
# File 'lib/cdnetworks-client/cache_flush_open_api.rb', line 7 def pad_list(={}) call(cache_flush_path("padList"),add_flush_credentials()) end |
#status(options = {}) ⇒ Object
11 12 13 |
# File 'lib/cdnetworks-client/cache_flush_open_api.rb', line 11 def status(={}) call(cache_flush_path("status"),add_flush_credentials()) end |