class Zendesk2::UpdateHelpCenterAccessPolicy

Public Class Methods

accepted_attributes() click to toggle source
# File lib/zendesk2/help_center/update_help_center_access_policy.rb, line 11
def self.accepted_attributes
  %w(viewable_by managable_by restricted_to_group_ids restricted_to_organization_ids required_tags)
end

Public Instance Methods

access_policy_params() click to toggle source
# File lib/zendesk2/help_center/update_help_center_access_policy.rb, line 15
def access_policy_params
  Cistern::Hash.slice(params.fetch('access_policy'), *Zendesk2::UpdateHelpCenterAccessPolicy.accepted_attributes)
end
mock() click to toggle source
# File lib/zendesk2/help_center/update_help_center_access_policy.rb, line 23
def mock
  mock_response('access_policy' => find!(:help_center_access_policies, section_id).merge!(access_policy_params))
end
section_id() click to toggle source
# File lib/zendesk2/help_center/update_help_center_access_policy.rb, line 19
def section_id
  params.fetch('section_id')
end