Class: Vk::API::Messages::Methods::GetLongPollServer

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

Overview

Returns data required for connection to a Long Poll server.

Arguments collapse

Instance Method Summary collapse

Methods inherited from Schema::Method

#call, #method, #to_hash

Constructor Details

#initialize(arguments) ⇒ Messages::Methods::GetLongPollServer

Parameters:

  • arguments (Hash)

Options Hash (arguments):

  • :use_ssl (Boolean)

    '1' — to use SSL.

  • :need_pts (Boolean)

    '1' — to return the 'pts' field, needed for the method.



# File 'lib/vk/api/messages/methods/get_long_poll_server.rb', line 15

Instance Method Details

#need_ptsBoolean

Returns '1' — to return the 'pts' field, needed for the method.

Returns:

  • (Boolean)

    '1' — to return the 'pts' field, needed for the method.



26
# File 'lib/vk/api/messages/methods/get_long_poll_server.rb', line 26

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

#use_sslBoolean

Returns '1' — to use SSL.

Returns:

  • (Boolean)

    '1' — to use SSL.



24
# File 'lib/vk/api/messages/methods/get_long_poll_server.rb', line 24

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