Class: Vonage::Conversations
- Inherits:
-
Namespace
- Object
- Namespace
- Vonage::Conversations
show all
- Extended by:
- T::Sig
- Defined in:
- lib/vonage/conversations.rb
Defined Under Namespace
Classes: Events, Legs, Members, Users
Instance Method Summary
collapse
Instance Method Details
#create(params) ⇒ Object
41
42
43
44
|
# File 'lib/vonage/conversations.rb', line 41
def create(params)
logger.info('This method is deprecated and will be removed in a future release. Please use `Vonage::Conversation#create` instead.')
request('/beta/conversations', params: params, type: Post)
end
|
#delete(id) ⇒ Object
159
160
161
162
|
# File 'lib/vonage/conversations.rb', line 159
def delete(id)
logger.info('This method is deprecated and will be removed in a future release. Please use `Vonage::Conversation#delete` instead.')
request('/beta/conversations/' + id, type: Delete)
end
|
#events ⇒ Object
207
208
209
210
211
212
|
# File 'lib/vonage/conversations.rb', line 207
def events
logger.info('This method is deprecated and will be removed in a future release. Please use `Vonage::Conversation#event` instead.')
@events = T.let(@events, T.nilable(Vonage::Conversations::Events))
@config = T.let(@config, T.nilable(Vonage::Config))
@events ||= Events.new(@config)
end
|
#get(id) ⇒ Object
101
102
103
104
|
# File 'lib/vonage/conversations.rb', line 101
def get(id)
logger.info('This method is deprecated and will be removed in a future release. Please use `Vonage::Conversation#find` instead.')
request('/beta/conversations/' + id)
end
|
#legs ⇒ Object
219
220
221
222
223
|
# File 'lib/vonage/conversations.rb', line 219
def legs
logger.info('This method is deprecated and will be removed in a future release.')
@legs = T.let(@legs, T.nilable(Vonage::Conversations::Legs))
@legs ||= Legs.new(@config)
end
|
#list(params = nil, auto_advance = true) ⇒ Object
78
79
80
81
82
83
84
85
|
# File 'lib/vonage/conversations.rb', line 78
def list(params = nil, auto_advance = true)
logger.info('This method is deprecated and will be removed in a future release. Please use `Vonage::Conversation#list` instead.')
if params && !params.key?(:auto_advance)
params.merge!(auto_advance: true)
end
request('/beta/conversations', params: params)
end
|
#members ⇒ Object
230
231
232
233
234
|
# File 'lib/vonage/conversations.rb', line 230
def members
logger.info('This method is deprecated and will be removed in a future release. Please use `Vonage::Conversation#member` instead.')
@members = T.let(@members, T.nilable(Vonage::Conversations::Members))
@members ||= Members.new(@config)
end
|
#record(id, params) ⇒ Object
197
198
199
200
|
# File 'lib/vonage/conversations.rb', line 197
def record(id, params)
logger.info('This method is deprecated and will be removed in a future release.')
request('/v1/conversations/' + id + '/record', params: params, type: Put)
end
|
#update(id, params) ⇒ Object
140
141
142
143
|
# File 'lib/vonage/conversations.rb', line 140
def update(id, params)
logger.info('This method is deprecated and will be removed in a future release. Please use `Vonage::Conversation#update` instead.')
request('/beta/conversations/' + id, params: params, type: Put)
end
|
#users ⇒ Object
241
242
243
244
245
|
# File 'lib/vonage/conversations.rb', line 241
def users
logger.info('This method is deprecated and will be removed in a future release. Please use `Vonage::Conversation#user` instead.')
@users = T.let(@users, T.nilable(Vonage::Conversations::Users))
@users ||= Users.new(@config)
end
|