Sha256: 52f22fb73080dd830725ecfc0fd83387fa131fc7b10ac7a88efcfd817041bc1e

Contents?: true

Size: 391 Bytes

Versions: 6

Compression:

Stored size: 391 Bytes

Contents

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

  request_method :get
  request_path do |r|
    "/help_center/sections/#{r.section_id}/access_policy.json"
  end

  def section_id
    params.fetch('section_id')
  end

  def mock(_params = {})
    mock_response('access_policy' => find!(:help_center_access_policies, section_id))
  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_access_policy.rb
zendesk2-1.13.1 lib/zendesk2/help_center/get_help_center_access_policy.rb
zendesk2-1.13.0 lib/zendesk2/help_center/get_help_center_access_policy.rb
zendesk2-1.12.0 lib/zendesk2/help_center/get_help_center_access_policy.rb
zendesk2-1.11.0 lib/zendesk2/help_center/get_help_center_access_policy.rb
zendesk2-1.10.0 lib/zendesk2/help_center/get_help_center_access_policy.rb