Class: Vk::API::Newsfeed::Methods::Unsubscribe

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

Overview

Unsubscribes the current user from specified newsfeeds.

Arguments collapse

Instance Method Summary collapse

Methods inherited from Schema::Method

#call, #method, #to_hash

Constructor Details

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

Parameters:

  • arguments (Hash)

Options Hash (arguments):

  • :type (String)

    Type of object from which to unsubscribe:; 'note' — note; 'photo' — photo; 'post' — post on user wall or community wall; 'topic' — topic; 'video' — video

  • :owner_id (Integer)

    Object owner ID.

  • :item_id (Integer)

    Object ID.


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

Instance Method Details

#item_idInteger

Returns Object ID.

Returns:

  • (Integer)

    Object ID.


29
# File 'lib/vk/api/newsfeed/methods/unsubscribe.rb', line 29

attribute :item_id, API::Types::Coercible::Int

#owner_idInteger

Returns Object owner ID.

Returns:

  • (Integer)

    Object owner ID.


27
# File 'lib/vk/api/newsfeed/methods/unsubscribe.rb', line 27

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

#typeString

Returns Type of object from which to unsubscribe:; 'note' — note; 'photo' — photo; 'post' — post on user wall or community wall; 'topic' — topic; 'video' — video.

Returns:

  • (String)

    Type of object from which to unsubscribe:; 'note' — note; 'photo' — photo; 'post' — post on user wall or community wall; 'topic' — topic; 'video' — video


25
# File 'lib/vk/api/newsfeed/methods/unsubscribe.rb', line 25

attribute :type, API::Types::Coercible::String