Class: CiscoWebex::Attachments

Inherits:
Messages show all
Defined in:
lib/Messaging/Attachements.rb

Instance Method Summary collapse

Methods inherited from Messages

#attachments

Methods inherited from Messaging

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

Constructor Details

#initialize(token = nil) ⇒ Attachments

initialize object with stored token



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

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

Instance Method Details

#create(params) ⇒ Object



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

def create(params)
	return CiscoWebex::Rest.post(@auth_token, "/v1/attactment/actions", params, limit) rescue false
	return false
end

#delete(id) ⇒ Object



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

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

#get(id) ⇒ Object



25
26
27
# File 'lib/Messaging/Attachements.rb', line 25

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

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



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

def list(params={}, limit=5000)
	STDERR.puts "CiscoWebex::Messaging::Messages::Attachments.search() - Metod not implemented"
	return false
end

#patch(params, id = nil) ⇒ Object



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

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

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



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

def search(params={}, limit=5000)
	STDERR.puts "CiscoWebex::Messaging::Messages::Attachments.search() - Metod not implemented"
	return false
end

#templateObject



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

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

#thisObject



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

def this()
	puts "CiscoWebex::Messaging::Messages::Attachments"
end

#update(params) ⇒ Object



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

def update(params)
	STDERR.puts "CiscoWebex::Messaging::Messages::Attachments.update() - Metod not implemented"
	return false
end