Class: Zendesk2::DestroyHelpCenterSubscription
- Inherits:
-
Object
- Object
- Zendesk2::DestroyHelpCenterSubscription
- Includes:
- HelpCenter::SubscriptionRequest, Request
- Defined in:
- lib/zendesk2/help_center/destroy_help_center_subscription.rb
Instance Attribute Summary
Attributes included from Request
Instance Method Summary collapse
Methods included from HelpCenter::SubscriptionRequest
#content_id, #content_type, included, #plural_content_type, #route_prefix, #subscription, #subscription_id
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 17 18 19 |
# File 'lib/zendesk2/help_center/destroy_help_center_subscription.rb', line 12 def mock content_collection = "help_center_#{plural_content_type}".to_sym find!(content_collection, content_id) delete!(:help_center_subscriptions, subscription_id) mock_response(nil, status: 204) end |