Class: CiscoWebex::Templates

Inherits:
Meetings show all
Defined in:
lib/Meetings/Templates.rb

Instance Method Summary collapse

Methods inherited from Meetings

#control_status, #head, #invitees, #me, #meetings, #participants, #post, #put, #qualities, #registrations, #session_types, #templates, #transcripts

Constructor Details

#initialize(token = nil) ⇒ Templates

initialize object with stored token



6
7
8
9
10
11
12
13
# File 'lib/Meetings/Templates.rb', line 6

def initialize(token=nil)
	if token == nil
		STDERR.puts "Must provide API key for CiscoWebex::Meetings::Templates"
		return false
	else
		@auth_token = token if token
	end
end

Instance Method Details

#create(params) ⇒ Object



36
37
38
39
# File 'lib/Meetings/Templates.rb', line 36

def create(params)
	STDERR.puts "CiscoWebex::Meetings::Templates.create() - Metod not implemented"
	return false
end

#delete(id) ⇒ Object



41
42
43
44
# File 'lib/Meetings/Templates.rb', line 41

def delete(id)
	STDERR.puts "CiscoWebex::Meetings::Templates.delete() - Metod not implemented"
	return false
end

#get(id, limit = 5000) ⇒ Object



19
20
21
# File 'lib/Meetings/Templates.rb', line 19

def get(id, limit=5000)
	return CiscoWebex::Rest.get(@auth_token, "/v1/meetings/templates/#{id}", {}, limit) rescue false
end

#list(params = {}, limit = 5000) ⇒ Object



23
24
25
# File 'lib/Meetings/Templates.rb', line 23

def list(params={}, limit=5000)
	return CiscoWebex::Rest.get(@auth_token, "/v1/meetings/templates", params, limit) rescue false
end

#patch(id, params) ⇒ Object



51
52
53
54
# File 'lib/Meetings/Templates.rb', line 51

def patch(id, params)
	STDERR.puts "CiscoWebex::Meetings::Templates.patch() - Metod not implemented"
	return false
end

#search(params = {}, limit = 5000) ⇒ Object



27
28
29
30
31
32
33
34
# File 'lib/Meetings/Templates.rb', line 27

def search(params={}, limit=5000)
	if param.class != Hash || params.length() == 0
		STDERR.puts "CiscoWebex::Meetings::Templates.search() - require parameters as Hash"
		return false
	else
		return CiscoWebex::Rest.get(@auth_token, "/v1/meetings/templates", params, limit) rescue false				
	end
end

#thisObject



15
16
17
# File 'lib/Meetings/Templates.rb', line 15

def this()
	puts "CiscoWebex::Meetings::Templates"
end

#update(id, params) ⇒ Object



46
47
48
49
# File 'lib/Meetings/Templates.rb', line 46

def update(id, params)
	STDERR.puts "CiscoWebex::Meetings::Templates.update() - Metod not implemented"
	return false
end