Class: Vonage::Verify2::Templates
- Inherits:
-
Namespace
- Object
- Namespace
- Vonage::Verify2::Templates
- Defined in:
- lib/vonage/verify2/templates.rb
Defined Under Namespace
Classes: ListResponse
Instance Method Summary collapse
-
#create(name:) ⇒ Response
Create a new template.
-
#delete(template_id:) ⇒ Response
Delete a template.
-
#info(template_id:) ⇒ Response
Get details of a specific template.
-
#list(**params) ⇒ ListResponse
Get a list of all templates.
-
#update(template_id:, **params) ⇒ Response
Update an existing template.
Instance Method Details
#create(name:) ⇒ Response
Create a new template.
50 51 52 |
# File 'lib/vonage/verify2/templates.rb', line 50 def create(name:) request('/v2/verify/templates', params: { name: name }, type: Post) end |
#delete(template_id:) ⇒ Response
Delete a template.
82 83 84 |
# File 'lib/vonage/verify2/templates.rb', line 82 def delete(template_id:) request('/v2/verify/templates/' + template_id, type: Delete) end |
#info(template_id:) ⇒ Response
Get details of a specific template.
36 37 38 |
# File 'lib/vonage/verify2/templates.rb', line 36 def info(template_id:) request('/v2/verify/templates/' + template_id) end |
#list(**params) ⇒ ListResponse
Get a list of all templates.
22 23 24 |
# File 'lib/vonage/verify2/templates.rb', line 22 def list(**params) request('/v2/verify/templates', params: params, response_class: ListResponse) end |
#update(template_id:, **params) ⇒ Response
Update an existing template.
68 69 70 |
# File 'lib/vonage/verify2/templates.rb', line 68 def update(template_id:, **params) request('/v2/verify/templates/' + template_id, params: params, type: Patch) end |