Class: CiscoWebex::Classifications

Inherits:
Messaging
  • Object
show all
Defined in:
lib/Messaging/Classifications.rb

Instance Method Summary collapse

Methods inherited from Messaging

#audit_events, #classifications, #head, #me, #messages, #people, #post, #put, #rooms, #teams, #webhooks

Constructor Details

#initialize(token = nil) ⇒ Classifications

initialize object with stored token



6
7
8
9
10
11
12
13
14
# File 'lib/Messaging/Classifications.rb', line 6

def initialize(token=nil)
	if token == nil
		STDERR.puts "Must provide API key for CiscoWebex::Messaging::Classifications"
		return false
	else
		@auth_token = token if token
		@memberships = Memberships.new(@auth_token)
	end
end

Instance Method Details

#create(params) ⇒ Object



43
44
45
46
# File 'lib/Messaging/Classifications.rb', line 43

def create(params)
	STDERR.puts "CiscoWebex::Messaging::Classifications.patch() - Metod not implemented"
	return false
end

#delete(id) ⇒ Object



48
49
50
51
# File 'lib/Messaging/Classifications.rb', line 48

def delete(id)
	STDERR.puts "CiscoWebex::Messaging::Classifications.patch() - Metod not implemented"
	return false
end

#get(id) ⇒ Object



30
31
32
# File 'lib/Messaging/Classifications.rb', line 30

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

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



34
35
36
# File 'lib/Messaging/Classifications.rb', line 34

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

#membershipsObject



26
27
28
# File 'lib/Messaging/Classifications.rb', line 26

def memberships()
	return @memberships
end

#patch(id, params) ⇒ Object



58
59
60
61
# File 'lib/Messaging/Classifications.rb', line 58

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

#search(params = {}) ⇒ Object



38
39
40
41
# File 'lib/Messaging/Classifications.rb', line 38

def search(params={})
	params = { "title"=> params } if params.class == String
	return CiscoWebex::Toolbox.search(list(), params)
end

#templateObject



20
21
22
23
24
# File 'lib/Messaging/Classifications.rb', line 20

def template()
	return OpenStruct.new({ 	
				"name"=>""
			})
end

#thisObject



16
17
18
# File 'lib/Messaging/Classifications.rb', line 16

def this()
	puts "CiscoWebex::Messaging::Classifications"
end

#update(id, params) ⇒ Object



53
54
55
56
# File 'lib/Messaging/Classifications.rb', line 53

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