Class: CiscoWebex::Events

Inherits:
Messaging show all
Defined in:
lib/Messaging/Events.rb

Instance Method Summary collapse

Methods inherited from Messaging

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

Constructor Details

#initialize(token = nil) ⇒ Events

initialize object with stored token



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

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

Instance Method Details

#create(params) ⇒ Object



39
40
41
42
# File 'lib/Messaging/Events.rb', line 39

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

#delete(id) ⇒ Object



44
45
46
47
# File 'lib/Messaging/Events.rb', line 44

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

#get(id) ⇒ Object



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

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

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



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

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

#patch(id, params) ⇒ Object



54
55
56
57
# File 'lib/Messaging/Events.rb', line 54

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

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



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

def search(params={}, limit=5000)
	params = { "resource"=> params } if params.class == String
	return list(params, limit)
end

#templateObject



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

def template()
	STDERR.puts "CiscoWebex::Messaging::Events.template() - Metod not implemented"
	return false
end

#thisObject



17
18
19
# File 'lib/Messaging/Events.rb', line 17

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

#update(id, params) ⇒ Object



49
50
51
52
# File 'lib/Messaging/Events.rb', line 49

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