Class: CiscoWebex::Messages::Attachments
- Inherits:
-
Object
- Object
- CiscoWebex::Messages::Attachments
- Defined in:
- lib/Messaging/Messages.rb
Instance Method Summary collapse
- #create(params) ⇒ Object
- #delete(id) ⇒ Object
- #get(id) ⇒ Object
-
#initialize(token = nil) ⇒ Attachments
constructor
initialize object with stored token.
- #list(params = {}, limit = 5000) ⇒ Object
- #patch(params, id = nil) ⇒ Object
- #search(params = {}, limit = 5000) ⇒ Object
- #template ⇒ Object
- #this ⇒ Object
- #update(params) ⇒ Object
Constructor Details
#initialize(token = nil) ⇒ Attachments
initialize object with stored token
72 73 74 75 76 77 78 79 |
# File 'lib/Messaging/Messages.rb', line 72 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
104 105 106 |
# File 'lib/Messaging/Messages.rb', line 104 def create(params) return CiscoWebex::Rest.post(@auth_token, @base_uri, params, limit) rescue false end |
#delete(id) ⇒ Object
108 109 110 111 |
# File 'lib/Messaging/Messages.rb', line 108 def delete(id) STDERR.puts "CiscoWebex::Messaging::Messages::Attachments.delete() - Metod not implemented" return false end |
#get(id) ⇒ Object
90 91 92 |
# File 'lib/Messaging/Messages.rb', line 90 def get(id) return CiscoWebex::Rest.get(@auth_token, "#{@base_uri}/#{id}", {}, limit) rescue false end |
#list(params = {}, limit = 5000) ⇒ Object
94 95 96 97 |
# File 'lib/Messaging/Messages.rb', line 94 def list(params={}, limit=5000) STDERR.puts "CiscoWebex::Messaging::Messages::Attachments.search() - Metod not implemented" return false end |
#patch(params, id = nil) ⇒ Object
118 119 120 121 |
# File 'lib/Messaging/Messages.rb', line 118 def patch(params, id=nil) STDERR.puts "CiscoWebex::Messaging::Messages::Attachments.patch() - Metod not implemented" return false end |
#search(params = {}, limit = 5000) ⇒ Object
99 100 101 102 |
# File 'lib/Messaging/Messages.rb', line 99 def search(params={}, limit=5000) STDERR.puts "CiscoWebex::Messaging::Messages::Attachments.search() - Metod not implemented" return false end |
#template ⇒ Object
85 86 87 88 |
# File 'lib/Messaging/Messages.rb', line 85 def template() STDERR.puts "CiscoWebex::Messaging::Messages::Attachments.template() - Metod not implemented" return false end |
#this ⇒ Object
81 82 83 |
# File 'lib/Messaging/Messages.rb', line 81 def this() puts "CiscoWebex::Messaging::Messages::Attachments" end |
#update(params) ⇒ Object
113 114 115 116 |
# File 'lib/Messaging/Messages.rb', line 113 def update(params) STDERR.puts "CiscoWebex::Messaging::Messages::Attachments.update() - Metod not implemented" return false end |