Class: Vk::API::Newsfeed::ItemWallpost

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

Overview

Instance Method Summary collapse

Instance Method Details

#attachments ⇒ Array



19
# File 'lib/vk/api/newsfeed/item_wallpost.rb', line 19

attribute :attachments, API::Types::Coercible::Array.member(API::Wall::WallpostAttachment).optional.default(nil)

#comments ⇒ API::Base::CommentsInfo



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

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

#copy_history ⇒ Array



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

attribute :copy_history, API::Types::Coercible::Array.member(API::Wall::Wallpost).optional.default(nil)

#geo ⇒ API::Base::Geo



21
# File 'lib/vk/api/newsfeed/item_wallpost.rb', line 21

attribute :geo, Dry::Types[API::Base::Geo].optional.default(nil)

#likes ⇒ API::Base::LikesInfo



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

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

#post_id ⇒ Integer

Returns Post ID.

Returns:

  • (Integer) —

    Post ID



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

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

#post_source ⇒ API::Wall::PostSource



23
# File 'lib/vk/api/newsfeed/item_wallpost.rb', line 23

attribute :post_source, Dry::Types[API::Wall::PostSource].optional.default(nil)

#post_type ⇒ String

Returns Post type.

Returns:

  • (String) —

    Post type



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

attribute :post_type, API::Types::Coercible::String.enum("post", "copy", "reply").optional.default(nil)

#reposts ⇒ API::Base::RepostsInfo



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

attribute :reposts, Dry::Types[API::Base::RepostsInfo].optional.default(nil)

#text ⇒ String

Returns Post text.

Returns:

  • (String) —

    Post text



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

attribute :text, API::Types::Coercible::String.optional.default(nil)