Class: Vk::API::Newsfeed::Methods::AddBan

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

Overview

Prevents news from specified users and communities from appearing in the current user’s newsfeed.

Arguments collapse

Instance Method Summary collapse

Methods inherited from Schema::Method

#call, #method, #to_hash

Constructor Details

#initialize(arguments) ⇒ Newsfeed::Methods::AddBan

Parameters:

  • arguments (Hash)

Options Hash (arguments):

  • :user_ids (Array)

    @see https://github.com/VKCOM/vk-api-schema/blob/master/objects.json

  • :group_ids (Array)

    @see https://github.com/VKCOM/vk-api-schema/blob/master/objects.json



# File 'lib/vk/api/newsfeed/methods/add_ban.rb', line 15

Instance Method Details

#group_idsArray

Returns @see https://github.com/VKCOM/vk-api-schema/blob/master/objects.json.

Returns:

  • (Array)

    @see https://github.com/VKCOM/vk-api-schema/blob/master/objects.json



26
# File 'lib/vk/api/newsfeed/methods/add_ban.rb', line 26

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

#user_idsArray

Returns @see https://github.com/VKCOM/vk-api-schema/blob/master/objects.json.

Returns:

  • (Array)

    @see https://github.com/VKCOM/vk-api-schema/blob/master/objects.json



24
# File 'lib/vk/api/newsfeed/methods/add_ban.rb', line 24

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