Class: Vk::API::Secure::Methods::AddAppEvent

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

Overview

Adds user activity information to an application

Arguments collapse

Instance Method Summary collapse

Methods inherited from Schema::Method

#call, #method, #to_hash

Constructor Details

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

Parameters:

  • arguments (Hash)

Options Hash (arguments):

  • :user_id (Integer)

    ID of a user to save the data

  • :activity_id (Integer)

    there are 2 default activities: ; * 1 – level. Works similar to ;; * 2 – points, saves points amount; Any other value is for saving completed missions

  • :value (Integer)

    depends on activity_id:; * 1 – number, current level number;; * 2 – number, current user's points amount; ; Any other value is ignored


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

Instance Method Details

#activity_idInteger

Returns there are 2 default activities: ; * 1 – level. Works similar to ;; * 2 – points, saves points amount; Any other value is for saving completed missions.

Returns:

  • (Integer)

    there are 2 default activities: ; * 1 – level. Works similar to ;; * 2 – points, saves points amount; Any other value is for saving completed missions


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

attribute :activity_id, API::Types::Coercible::Int

#user_idInteger

Returns ID of a user to save the data.

Returns:

  • (Integer)

    ID of a user to save the data


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

attribute :user_id, API::Types::Coercible::Int

#valueInteger

Returns depends on activity_id:; * 1 – number, current level number;; * 2 – number, current user's points amount; ; Any other value is ignored.

Returns:

  • (Integer)

    depends on activity_id:; * 1 – number, current level number;; * 2 – number, current user's points amount; ; Any other value is ignored


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

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