class Zendesk2::HelpCenter::Sections
Public Instance Methods
collection_page(params = {})
click to toggle source
# File lib/zendesk2/help_center/sections.rb, line 19 def collection_page(params = {}) collection_method = if category_id :get_help_center_categories_sections else :get_help_center_sections end body = cistern.send(collection_method, Cistern::Hash.stringify_keys(attributes.merge(params))).body load(body[collection_root]) # 'results' is the key for paged searches merge_attributes(Cistern::Hash.slice(body, 'count', 'next_page', 'previous_page')) self end