Class: Vk::API::Secure::Methods::SendNotification

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

Overview

Sends notification to the user.

Arguments collapse

Instance Method Summary collapse

Methods inherited from Schema::Method

#call, #method, #to_hash

Constructor Details

#initialize(arguments) ⇒ Secure::Methods::SendNotification

Parameters:

  • arguments (Hash)

Options Hash (arguments):



# File 'lib/vk/api/secure/methods/send_notification.rb', line 15

Instance Method Details

#messageString

Returns notification text which should be sent in 'UTF-8' encoding ('254' characters maximum).

Returns:

  • (String)

    notification text which should be sent in 'UTF-8' encoding ('254' characters maximum).



29
# File 'lib/vk/api/secure/methods/send_notification.rb', line 29

attribute :message, API::Types::Coercible::String

#user_idInteger



27
# File 'lib/vk/api/secure/methods/send_notification.rb', line 27

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

#user_idsArray



25
# File 'lib/vk/api/secure/methods/send_notification.rb', line 25

attribute :user_ids, API::Types::Coercible::Array.member(API::Types::Coercible::Int).optional.default(nil)