Sha256: 970f2d2af984e9ee2f15fa7c0d10439478061a874e1d2649b2525e6e8a0fc7d2
Contents?: true
Size: 1.08 KB
Versions: 6
Compression:
Stored size: 1.08 KB
Contents
# frozen_string_literal: true class Zendesk2::HelpCenter::AccessPolicy include Zendesk2::Model extend Zendesk2::Attributes # @return [String] Category of users who can view the section attribute :viewable_by, type: :string # ro:no required:no # @return [String] Category of users who can manage the section attribute :managable_by, type: :string # ro:no required:no # @return [Array] The ids of all groups who can access the section attribute :restricted_to_group_ids, type: :array # ro:no required:no # @return [Array] The ids of all organizations who can access the section attribute :restricted_to_organization_ids, type: :array # ro:no required:no # @return [Array] The tags a user must have to have access attribute :required_tags, type: :array # ro:no required:no attr_accessor :section_id assoc_accessor :section, collection: :help_center_sections def save! requires :section_id response = cistern.update_help_center_access_policy('access_policy' => attributes, 'section_id' => section_id) merge_attributes(response.body['access_policy']) end end
Version data entries
6 entries across 6 versions & 1 rubygems