Class: Vk::API::Newsfeed::NewsfeedItem

Inherits:
Schema::Object show all
Defined in:
lib/vk/api/newsfeed/newsfeed_item.rb

Overview

Instance Method Summary collapse

Instance Method Details

#dateInteger

Returns Date when item has been added in Unixtime.

Returns:

  • (Integer)

    Date when item has been added in Unixtime



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

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

#source_idInteger

Returns Item source ID.

Returns:

  • (Integer)

    Item source ID



13
# File 'lib/vk/api/newsfeed/newsfeed_item.rb', line 13

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

#typeString

Returns Item type.

Returns:

  • (String)

    Item type



11
# File 'lib/vk/api/newsfeed/newsfeed_item.rb', line 11

attribute :type, API::Types::Coercible::String.enum("post", "photo", "photo_tag", "wall_photo", "friend", "note", "audio", "video", "topic").optional.default(nil)