Class: Vk::API::Newsfeed::ItemTopic

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

Overview

Instance Method Summary collapse

Instance Method Details

#comments ⇒ API::Base::CommentsInfo



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

attribute :comments, Dry::Types[API::Base::CommentsInfo].optional.default(nil)

#likes ⇒ API::Base::LikesInfo



17
# File 'lib/vk/api/newsfeed/item_topic.rb', line 17

attribute :likes, Dry::Types[API::Base::LikesInfo].optional.default(nil)

#post_id ⇒ Integer

Returns Topic post ID.

Returns:

  • (Integer) —

    Topic post ID



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

attribute :post_id, API::Types::Coercible::Int

#text ⇒ String

Returns Post text.

Returns:

  • (String) —

    Post text



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

attribute :text, API::Types::Coercible::String