Class: FreshdeskAPI::SolutionFolder
- Defined in:
- lib/freshdesk_api/resources/solution_folder.rb
Instance Attribute Summary
Attributes inherited from Data
Class Method Summary collapse
Instance Method Summary collapse
-
#api_url(_options = {}) ⇒ Object
Need to specify category_id in url.
- #request_namespace ⇒ Object
- #response_namespace ⇒ Object
Methods included from Read
Methods included from Destroy
#destroy, #destroy!, #destroyed?, included
Methods included from Update
Methods included from Save
Methods included from ResponseHandler
Methods included from Create
Methods inherited from Data
#==, #id, #initialize, #inspect, #new_record?, resource_name, singular_resource_name, #to_s
Constructor Details
This class inherits a constructor from FreshdeskAPI::Data
Class Method Details
.api_url(options = {}) ⇒ Object
22 23 24 |
# File 'lib/freshdesk_api/resources/solution_folder.rb', line 22 def api_url( = {}) format('/solution/categories/%<category_id>/folders', ) end |
.collection_namespace ⇒ Object
26 27 28 |
# File 'lib/freshdesk_api/resources/solution_folder.rb', line 26 def collection_namespace 'category/folders' end |
Instance Method Details
#api_url(_options = {}) ⇒ Object
Need to specify category_id in url
9 10 11 |
# File 'lib/freshdesk_api/resources/solution_folder.rb', line 9 def api_url( = {}) format('/solution/categories/%<category_id>/folders', attributes) end |
#request_namespace ⇒ Object
13 14 15 |
# File 'lib/freshdesk_api/resources/solution_folder.rb', line 13 def request_namespace 'solution_folder' end |
#response_namespace ⇒ Object
17 18 19 |
# File 'lib/freshdesk_api/resources/solution_folder.rb', line 17 def response_namespace :folder end |