Class: Vk::API::Pages::Methods::SaveAccess

Inherits:
Schema::Method
  • Object
show all
Defined in:
lib/vk/api/pages/methods/save_access.rb

Overview

Saves modified read and edit access settings for a wiki page.

Arguments collapse

Instance Method Summary collapse

Methods inherited from Schema::Method

#call, #method, #to_hash

Constructor Details

#initialize(arguments) ⇒ Pages::Methods::SaveAccess

Parameters:

  • arguments (Hash)

Options Hash (arguments):

  • :page_id (Integer)

    Wiki page ID.

  • :group_id (Integer)

    ID of the community that owns the wiki page.

  • :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

  • :edit (Integer)

    Who can edit the wiki page:; '1' — only community members; '2' — all users can edit the page; '0' — only community managers



# File 'lib/vk/api/pages/methods/save_access.rb', line 15

Instance Method Details

#editInteger

Returns Who can edit the wiki page:; '1' — only community members; '2' — all users can edit the page; '0' — only community managers.

Returns:

  • (Integer)

    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_idInteger

Returns ID of the community that owns the wiki page.

Returns:

  • (Integer)

    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_idInteger

Returns Wiki page ID.

Returns:

  • (Integer)

    Wiki page ID.



27
# File 'lib/vk/api/pages/methods/save_access.rb', line 27

attribute :page_id, API::Types::Coercible::Int

#user_idInteger

Returns:

  • (Integer)


31
# File 'lib/vk/api/pages/methods/save_access.rb', line 31

attribute :user_id, API::Types::Coercible::Int.optional.default(nil)

#viewInteger

Returns Who can view the wiki page:; '1' — only community members; '2' — all users can view the page; '0' — only community managers.

Returns:

  • (Integer)

    Who can view the wiki page:; '1' — only community members; '2' — all users can view the page; '0' — only community managers



33
# File 'lib/vk/api/pages/methods/save_access.rb', line 33

attribute :view, API::Types::Coercible::Int.optional.default(nil)