Sha256: f547440a5ded4ed03f7657677046b7c7ff05b94c4bf36d26b41584d60af7cc11

Contents?: true

Size: 338 Bytes

Versions: 6

Compression:

Stored size: 338 Bytes

Contents

# frozen_string_literal: true
class Zendesk2::GetHelpCenterCategories
  include Zendesk2::Request

  request_path do |r|
    locale = r.params['locale']
    locale ? "/help_center/#{locale}/categories.json" : '/help_center/categories.json'
  end

  page_params!

  def mock
    page(:help_center_categories, root: 'categories')
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
zendesk2-1.15.0 lib/zendesk2/help_center/get_help_center_categories.rb
zendesk2-1.13.1 lib/zendesk2/help_center/get_help_center_categories.rb
zendesk2-1.13.0 lib/zendesk2/help_center/get_help_center_categories.rb
zendesk2-1.12.0 lib/zendesk2/help_center/get_help_center_categories.rb
zendesk2-1.11.0 lib/zendesk2/help_center/get_help_center_categories.rb
zendesk2-1.10.0 lib/zendesk2/help_center/get_help_center_categories.rb