Class: Zendesk2::GetHelpCenterCategory
- Inherits:
-
Object
- Object
- Zendesk2::GetHelpCenterCategory
show all
- Includes:
- Request
- Defined in:
- lib/zendesk2/help_center/get_help_center_category.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
#category_id ⇒ Object
10
11
12
|
# File 'lib/zendesk2/help_center/get_help_center_category.rb', line 10
def category_id
params.fetch('category').fetch('id')
end
|
#mock ⇒ Object
14
15
16
|
# File 'lib/zendesk2/help_center/get_help_center_category.rb', line 14
def mock
mock_response('category' => find!(:help_center_categories, category_id))
end
|