Class: Vonage::ProactiveConnect::List
- Inherits:
-
Namespace
- Object
- Namespace
- Vonage::ProactiveConnect::List
- Extended by:
- T::Sig
- Defined in:
- lib/vonage/proactive_connect/list.rb
Instance Method Summary collapse
- #clear_items(id:) ⇒ Object deprecated Deprecated.
- #create(name:, **params) ⇒ Object deprecated Deprecated.
- #delete(id:) ⇒ Object deprecated Deprecated.
- #fetch_and_replace_items(id:) ⇒ Object deprecated Deprecated.
- #find(id:) ⇒ Object deprecated Deprecated.
- #update(id:, name:, **params) ⇒ Object deprecated Deprecated.
Instance Method Details
#clear_items(id:) ⇒ Object
Deprecated.
Clear list by deleting all items
158 159 160 161 162 163 164 |
# File 'lib/vonage/proactive_connect/list.rb', line 158 def clear_items(id:) logger.info('This method is deprecated and will be removed in a future release.') request( "/v0.1/bulk/lists/#{id}/clear", type: Post ) end |
#create(name:, **params) ⇒ Object
Deprecated.
Create list
51 52 53 54 55 56 57 58 |
# File 'lib/vonage/proactive_connect/list.rb', line 51 def create(name:, **params) logger.info('This method is deprecated and will be removed in a future release.') request( "/v0.1/bulk/lists", params: params.merge({ name: name }), type: Post ) end |
#delete(id:) ⇒ Object
Deprecated.
Delete a list by id
138 139 140 141 142 143 144 |
# File 'lib/vonage/proactive_connect/list.rb', line 138 def delete(id:) logger.info('This method is deprecated and will be removed in a future release.') request( "/v0.1/bulk/lists/#{id}", type: Delete ) end |
#fetch_and_replace_items(id:) ⇒ Object
Deprecated.
Fetch and replace all items from datasource
178 179 180 181 182 183 184 |
# File 'lib/vonage/proactive_connect/list.rb', line 178 def fetch_and_replace_items(id:) logger.info('This method is deprecated and will be removed in a future release.') request( "/v0.1/bulk/lists/#{id}/fetch", type: Post ) end |
#find(id:) ⇒ Object
Deprecated.
Get list by id
72 73 74 75 |
# File 'lib/vonage/proactive_connect/list.rb', line 72 def find(id:) logger.info('This method is deprecated and will be removed in a future release.') request("/v0.1/bulk/lists/#{id}") end |
#update(id:, name:, **params) ⇒ Object
Deprecated.
Update list
117 118 119 120 121 122 123 124 |
# File 'lib/vonage/proactive_connect/list.rb', line 117 def update(id:, name:, **params) logger.info('This method is deprecated and will be removed in a future release.') request( "/v0.1/bulk/lists/#{id}", params: params.merge({ name: name }), type: Put ) end |