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(id, params) ⇒ Object
- #search(params = {}, limit = 5000) ⇒ Object
- #template ⇒ Object
- #this ⇒ Object
- #update(id, 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 107 |
# File 'lib/Messaging/Messages.rb', line 104 def create(params) return CiscoWebex::Rest.post(@auth_token, @base_uri, params, limit) rescue false return false end |
#delete(id) ⇒ Object
109 110 111 112 |
# File 'lib/Messaging/Messages.rb', line 109 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(id, params) ⇒ Object
119 120 121 122 |
# File 'lib/Messaging/Messages.rb', line 119 def patch(id, params) 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(id, params) ⇒ Object
114 115 116 117 |
# File 'lib/Messaging/Messages.rb', line 114 def update(id, params) STDERR.puts "CiscoWebex::Messaging::Messages::Attachments.update() - Metod not implemented" return false end |