Class: Vk::API::Account::Methods::SetPushSettings

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

Overview

Change push settings.

Arguments collapse

Instance Method Summary collapse

Methods inherited from Schema::Method

#call, #method, #to_hash

Constructor Details

#initialize(arguments) ⇒ Account::Methods::SetPushSettings

Parameters:

  • arguments (Hash)

Options Hash (arguments):

  • :device_id (String)

    Unique device ID.

  • :settings (String)

    Push settings in a .

  • :key (String)

    Notification key.

  • :value (Array)

    New value for the key in a .


# File 'lib/vk/api/account/methods/set_push_settings.rb', line 15

Instance Method Details

#device_idString

Returns Unique device ID.

Returns:

  • (String)

    Unique device ID.


26
# File 'lib/vk/api/account/methods/set_push_settings.rb', line 26

attribute :device_id, API::Types::Coercible::String

#keyString

Returns Notification key.

Returns:

  • (String)

    Notification key.


30
# File 'lib/vk/api/account/methods/set_push_settings.rb', line 30

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

#settingsString

Returns Push settings in a .

Returns:

  • (String)

    Push settings in a .


28
# File 'lib/vk/api/account/methods/set_push_settings.rb', line 28

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

#valueArray

Returns New value for the key in a .

Returns:

  • (Array)

    New value for the key in a .


32
# File 'lib/vk/api/account/methods/set_push_settings.rb', line 32

attribute :value, API::Types::Coercible::Array.member(API::Types::Coercible::String).optional.default(nil)