Class: CiscoWebex::Locations
Instance Method Summary
collapse
Methods inherited from Calling
#call_control, #calls, #head, #me, #post, #put, #voicemail
Constructor Details
#initialize(token = nil) ⇒ Locations
initialize object with stored token
7
8
9
10
11
12
13
14
|
# File 'lib/Calling/Locations.rb', line 7
def initialize(token=nil)
if token == nil
STDERR.puts "Must provide API key for CiscoWebex::Calling::Locations"
return false
else
@auth_token = token if token
end
end
|
Instance Method Details
#create(params) ⇒ Object
32
33
34
|
# File 'lib/Calling/Locations.rb', line 32
def create(params)
return CiscoWebex::Rest.post(@auth_token, @base_uri, params) rescue false
end
|
#delete(id) ⇒ Object
36
37
38
|
# File 'lib/Calling/Locations.rb', line 36
def delete(id)
return CiscoWebex::Rest.delete(@auth_token, "#{@base_uri}/#{id}") rescue false
end
|
#get(id) ⇒ Object
20
21
22
|
# File 'lib/Calling/Locations.rb', line 20
def get(id)
return CiscoWebex::Rest.get(@auth_token, "#{@base_uri}/#{id}", {}, limit).data rescue false
end
|
#list(params = {}, limit = 5000) ⇒ Object
24
25
26
|
# File 'lib/Calling/Locations.rb', line 24
def list(params={}, limit=5000)
return CiscoWebex::Rest.get(@auth_token, @base_uri, params, limit).data rescue false
end
|
#patch(id, params) ⇒ Object
44
45
46
47
|
# File 'lib/Calling/Locations.rb', line 44
def patch(id, params)
STDERR.puts "CiscoWebex::Calling::Locations.patch() - Metod not implemented"
return False
end
|
#search(params = {}, limit = 5000) ⇒ Object
28
29
30
|
# File 'lib/Calling/Locations.rb', line 28
def search(params={}, limit=5000)
return CiscoWebex::Rest.get(@auth_token, @base_uri, params, limit).data rescue false
end
|
#this ⇒ Object
16
17
18
|
# File 'lib/Calling/Locations.rb', line 16
def this()
puts "CiscoWebex::Calling::Locations"
end
|
#update(id, params) ⇒ Object
40
41
42
|
# File 'lib/Calling/Locations.rb', line 40
def update(id, params)
return CiscoWebex::Rest.put(@auth_token, "#{@base_uri}/#{id}", params) rescue false
end
|