Class: Zendesk2::HelpCenter::AccessPolicy
- Inherits:
-
Object
- Object
- Zendesk2::HelpCenter::AccessPolicy
- Extended by:
- Attributes
- Includes:
- Model
- Defined in:
- lib/zendesk2/help_center/access_policy.rb
Instance Attribute Summary collapse
-
#section_id ⇒ Object
Returns the value of attribute section_id.
Attributes included from Model
Instance Method Summary collapse
-
#managable_by ⇒ String
Category of users who can manage the section.
-
#required_tags ⇒ Array
The tags a user must have to have access.
-
#restricted_to_group_ids ⇒ Array
The ids of all groups who can access the section.
-
#restricted_to_organization_ids ⇒ Array
The ids of all organizations who can access the section.
- #save! ⇒ Object
-
#viewable_by ⇒ String
Category of users who can view the section.
Methods included from Attributes
assoc_accessor, assoc_reader, assoc_writer
Methods included from Model
#destroy, #destroyed?, #missing_attributes, #save, #update!
Instance Attribute Details
#section_id ⇒ Object
Returns the value of attribute section_id.
18 19 20 |
# File 'lib/zendesk2/help_center/access_policy.rb', line 18 def section_id @section_id end |
Instance Method Details
#managable_by ⇒ String
Returns Category of users who can manage the section.
10 |
# File 'lib/zendesk2/help_center/access_policy.rb', line 10 attribute :managable_by, type: :string |
#required_tags ⇒ Array
Returns The tags a user must have to have access.
16 |
# File 'lib/zendesk2/help_center/access_policy.rb', line 16 attribute :required_tags, type: :array |
#restricted_to_group_ids ⇒ Array
Returns The ids of all groups who can access the section.
12 |
# File 'lib/zendesk2/help_center/access_policy.rb', line 12 attribute :restricted_to_group_ids, type: :array |
#restricted_to_organization_ids ⇒ Array
Returns The ids of all organizations who can access the section.
14 |
# File 'lib/zendesk2/help_center/access_policy.rb', line 14 attribute :restricted_to_organization_ids, type: :array |
#save! ⇒ Object
21 22 23 24 25 26 |
# File 'lib/zendesk2/help_center/access_policy.rb', line 21 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 |
#viewable_by ⇒ String
Returns Category of users who can view the section.
8 |
# File 'lib/zendesk2/help_center/access_policy.rb', line 8 attribute :viewable_by, type: :string |