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

#attachmentsArray



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

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

#commentsAPI::Base::CommentsInfo



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

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

#copy_historyArray



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)

#geoAPI::Base::Geo



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

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

#likesAPI::Base::LikesInfo



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

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

#post_idInteger

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_sourceAPI::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_typeString

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)

#repostsAPI::Base::RepostsInfo



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

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

#textString

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)