Class: Vk::API::Pages::Methods::SaveAccess
- Inherits:
-
Schema::Method
- Object
- Dry::Struct
- Schema::Method
- Vk::API::Pages::Methods::SaveAccess
- Defined in:
- lib/vk/api/pages/methods/save_access.rb
Overview
Saves modified read and edit access settings for a wiki page.
Arguments collapse
-
#edit ⇒ Integer
Who can edit the wiki page:; '1' — only community members; '2' — all users can edit the page; '0' — only community managers.
-
#group_id ⇒ Integer
ID of the community that owns the wiki page.
-
#page_id ⇒ Integer
Wiki page ID.
- #user_id ⇒ Integer
-
#view ⇒ Integer
Who can view the wiki page:; '1' — only community members; '2' — all users can view the page; '0' — only community managers.
Instance Method Summary collapse
Methods inherited from Schema::Method
Constructor Details
#initialize(arguments) ⇒ Pages::Methods::SaveAccess
|
# File 'lib/vk/api/pages/methods/save_access.rb', line 15
|
Instance Method Details
#edit ⇒ Integer
Returns Who can edit the wiki page:; '1' — only community members; '2' — all users can edit the page; '0' — only community managers.
35 |
# File 'lib/vk/api/pages/methods/save_access.rb', line 35 attribute :edit, API::Types::Coercible::Int.optional.default(nil) |
#group_id ⇒ Integer
Returns ID of the community that owns the wiki page.
29 |
# File 'lib/vk/api/pages/methods/save_access.rb', line 29 attribute :group_id, API::Types::Coercible::Int.optional.default(nil) |
#page_id ⇒ Integer
Returns Wiki page ID.
27 |
# File 'lib/vk/api/pages/methods/save_access.rb', line 27 attribute :page_id, API::Types::Coercible::Int |