Class: Zendesk2::DestroyTopic
- Inherits:
-
Object
- Object
- Zendesk2::DestroyTopic
show all
- Includes:
- Request
- Defined in:
- lib/zendesk2/destroy_topic.rb
Instance Attribute Summary
Attributes included from Request
#params
Instance Method Summary
collapse
Methods included from Request
#call, cistern_included, #data, #delete!, #error!, #find!, #html_url_for, included, #mock_response, #page, #page_params!, #page_params?, #pluralize, #real, #real_request, #request_body, #request_params, #request_path, #resources, #response, #timestamp, #url_for
Instance Method Details
#mock ⇒ Object
12
13
14
15
16
|
# File 'lib/zendesk2/destroy_topic.rb', line 12
def mock
delete!(:topics, topic_id)
mock_response(nil)
end
|
#topic_id ⇒ Object
8
9
10
|
# File 'lib/zendesk2/destroy_topic.rb', line 8
def topic_id
params.fetch('topic').fetch('id')
end
|