Class: Vk::API::Pages::Methods::Save

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

Overview

Saves the text of a wiki page.

Arguments collapse

Instance Method Summary collapse

Methods inherited from Schema::Method

#call, #method, #to_hash

Constructor Details

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

Parameters:

  • arguments (Hash)

Options Hash (arguments):

  • :text (String)

    Text of the wiki page in wiki-format.

  • :page_id (Integer)

    Wiki page ID. The 'title' parameter can be passed instead of 'pid'.

  • :group_id (Integer)

    ID of the community that owns the wiki page.

  • :user_id (Integer)
  • :title (String)

    Wiki page title.



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

Instance Method Details

#group_idInteger

Returns ID of the community that owns the wiki page.

Returns:

  • (Integer)

    ID of the community that owns the wiki page.



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

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

#page_idInteger

Returns Wiki page ID. The 'title' parameter can be passed instead of 'pid'.

Returns:

  • (Integer)

    Wiki page ID. The 'title' parameter can be passed instead of 'pid'.



29
# File 'lib/vk/api/pages/methods/save.rb', line 29

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

#textString

Returns Text of the wiki page in wiki-format.

Returns:

  • (String)

    Text of the wiki page in wiki-format.



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

attribute :text, API::Types::Coercible::String.optional.default(nil)

#titleString

Returns Wiki page title.

Returns:

  • (String)

    Wiki page title.



35
# File 'lib/vk/api/pages/methods/save.rb', line 35

attribute :title, API::Types::Coercible::String.optional.default(nil)

#user_idInteger

Returns:

  • (Integer)


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

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