Module: CacheFlushOpenApi

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

Instance Method Summary collapse

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(options)
  options[:user]     = @user
  options[:pass]     = @password

  options
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(options={})
  call(cache_flush_path("doPurge"),add_flush_credentials(options))
end

#pad_list(options = {}) ⇒ Object



7
8
9
# File 'lib/cdnetworks-client/cache_flush_open_api.rb', line 7

def pad_list(options={})
  call(cache_flush_path("padList"),add_flush_credentials(options))
end

#status(options = {}) ⇒ Object



11
12
13
# File 'lib/cdnetworks-client/cache_flush_open_api.rb', line 11

def status(options={})
  call(cache_flush_path("status"),add_flush_credentials(options))
end