Class: CiscoWebex::Tabs
Instance Method Summary
collapse
Methods inherited from Rooms
#tabs
Methods inherited from Messaging
#audit_events, #classifications, #head, #me, #memberships, #messages, #people, #post, #put, #rooms, #teams, #webhooks
Constructor Details
#initialize(token = nil) ⇒ Tabs
initialize object with stored token
70
71
72
73
74
75
76
77
|
# File 'lib/Messaging/Rooms.rb', line 70
def initialize(token=nil)
if token == nil
STDERR.puts "Must provide API key for CiscoWebex::Messaging::Rooms::Tabs"
return false
else
@auth_token = token if token
end
end
|
Instance Method Details
#create(params) ⇒ Object
103
104
105
|
# File 'lib/Messaging/Rooms.rb', line 103
def create(params)
return CiscoWebex::Rest.post(@auth_token, "/v1/rooms/tabs", params) rescue false
end
|
#delete(id) ⇒ Object
107
108
109
|
# File 'lib/Messaging/Rooms.rb', line 107
def delete(id)
return CiscoWebex::Rest.delete(@auth_token, "/v1/rooms/tabs/#{id}") rescue false
end
|
#get(id) ⇒ Object
91
92
93
|
# File 'lib/Messaging/Rooms.rb', line 91
def get(id)
return CiscoWebex::Rest.get(@auth_token, "/v1/rooms/tabs/#{id}", {}, limit) rescue false
end
|
#list(params = {}, limit = 5000) ⇒ Object
95
96
97
|
# File 'lib/Messaging/Rooms.rb', line 95
def list(params={}, limit=5000)
return CiscoWebex::Rest.get(@auth_token, "/v1/rooms/tabs", params, limit) rescue false
end
|
#patch(id, params) ⇒ Object
115
116
117
118
|
# File 'lib/Messaging/Rooms.rb', line 115
def patch(id, params)
STDERR.puts "CiscoWebex::Messaging::Rooms.patch() - Metod not implemented"
return false
end
|
#search(params = {}, limit = 5000) ⇒ Object
99
100
101
|
# File 'lib/Messaging/Rooms.rb', line 99
def search(params={}, limit=5000)
return CiscoWebex::Rest.get(@auth_token, "/v1/rooms/tabs", params, limit) rescue false
end
|
#template ⇒ Object
83
84
85
86
87
88
89
|
# File 'lib/Messaging/Rooms.rb', line 83
def template()
return OpenStruct.new({
"roomId": "",
"contentUrl": "",
"displayName": ""
})
end
|
#this ⇒ Object
79
80
81
|
# File 'lib/Messaging/Rooms.rb', line 79
def this()
puts "CiscoWebex::Messaging::Rooms::Tabs"
end
|
#update(id, params) ⇒ Object
111
112
113
|
# File 'lib/Messaging/Rooms.rb', line 111
def update(id, params)
return CiscoWebex::Rest.put(@auth_token, "/v1/rooms/tabs/#{id}", params) rescue false
end
|