Class: Vk::API::Pages::Methods::GetVersion

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

Overview

Returns the text of one of the previous versions 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::GetVersion

Parameters:

  • arguments (Hash)

Options Hash (arguments):

  • :version_id (Integer)
  • :group_id (Integer)

    ID of the community that owns the wiki page.

  • :user_id (Integer)
  • :need_html (Boolean)

    '1' — to return the page as HTML



# File 'lib/vk/api/pages/methods/get_version.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.



28
# File 'lib/vk/api/pages/methods/get_version.rb', line 28

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

#need_htmlBoolean

Returns '1' — to return the page as HTML.

Returns:

  • (Boolean)

    '1' — to return the page as HTML



32
# File 'lib/vk/api/pages/methods/get_version.rb', line 32

attribute :need_html, API::Types::Form::Bool.optional.default(nil)

#user_idInteger

Returns:

  • (Integer)


30
# File 'lib/vk/api/pages/methods/get_version.rb', line 30

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

#version_idInteger

Returns:

  • (Integer)


26
# File 'lib/vk/api/pages/methods/get_version.rb', line 26

attribute :version_id, API::Types::Coercible::Int