Class: Vk::API::Newsfeed::Methods::IgnoreItem

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

Overview

Hides an item from the newsfeed.

Arguments collapse

Instance Method Summary collapse

Methods inherited from Schema::Method

#call, #method, #to_hash

Constructor Details

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

Parameters:

  • arguments (Hash)

Options Hash (arguments):

  • :type (String)

    Item type. Possible values:; *'wall' – post on the wall;; *'tag' – tag on a photo;; *'profilephoto' – profile photo;; *'video' – video;; *'audio' – audio.

  • :owner_id (Integer)

    Item owner's identifier (user or community); "Note that community id must be negative. ; 'owner_id=1' – user ; 'owner_id=-1' – community "

  • :item_id (Integer)

    Item identifier



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

Instance Method Details

#item_idInteger

Returns Item identifier.

Returns:

  • (Integer)

    Item identifier



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

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

#owner_idInteger

Returns Item owner's identifier (user or community); "Note that community id must be negative. ; 'owner_id=1' – user ; 'owner_id=-1' – community ".

Returns:

  • (Integer)

    Item owner's identifier (user or community); "Note that community id must be negative. ; 'owner_id=1' – user ; 'owner_id=-1' – community "



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

attribute :owner_id, API::Types::Coercible::Int

#typeString

Returns Item type. Possible values:; *'wall' – post on the wall;; *'tag' – tag on a photo;; *'profilephoto' – profile photo;; *'video' – video;; *'audio' – audio.

Returns:

  • (String)

    Item type. Possible values:; *'wall' – post on the wall;; *'tag' – tag on a photo;; *'profilephoto' – profile photo;; *'video' – video;; *'audio' – audio.



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

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