Class: Vk::API::Widgets::WidgetComment

Inherits:
Schema::Object show all
Defined in:
lib/vk/api/widgets/widget_comment.rb

Overview

Instance Method Summary collapse

Instance Method Details

#attachmentsArray


29
# File 'lib/vk/api/widgets/widget_comment.rb', line 29

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

#can_deleteInteger

Returns Information whether current user can delete the comment.

Returns:

  • (Integer)

    Information whether current user can delete the comment


25
# File 'lib/vk/api/widgets/widget_comment.rb', line 25

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

#commentsAPI::Widgets::CommentReplies


33
# File 'lib/vk/api/widgets/widget_comment.rb', line 33

attribute :comments, Dry::Types[API::Widgets::CommentReplies].optional.default(nil)

#dateInteger

Returns Date when the comment has been added in Unixtime.

Returns:

  • (Integer)

    Date when the comment has been added in Unixtime


17
# File 'lib/vk/api/widgets/widget_comment.rb', line 17

attribute :date, API::Types::Coercible::Int

#from_idInteger

Returns Comment author ID.

Returns:

  • (Integer)

    Comment author ID


13
# File 'lib/vk/api/widgets/widget_comment.rb', line 13

attribute :from_id, API::Types::Coercible::Int

#idInteger

Returns Comment ID.

Returns:

  • (Integer)

    Comment ID


11
# File 'lib/vk/api/widgets/widget_comment.rb', line 11

attribute :id, API::Types::Coercible::Int

#likesAPI::Base::LikesInfo


35
# File 'lib/vk/api/widgets/widget_comment.rb', line 35

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

#mediaAPI::Widgets::CommentMedia


27
# File 'lib/vk/api/widgets/widget_comment.rb', line 27

attribute :media, Dry::Types[API::Widgets::CommentMedia].optional.default(nil)

#post_sourceAPI::Wall::PostSource


31
# File 'lib/vk/api/widgets/widget_comment.rb', line 31

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

#post_typeInteger

Returns Post type.

Returns:

  • (Integer)

    Post type


21
# File 'lib/vk/api/widgets/widget_comment.rb', line 21

attribute :post_type, API::Types::Coercible::Int

#repostsAPI::Base::RepostsInfo


37
# File 'lib/vk/api/widgets/widget_comment.rb', line 37

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

#textString

Returns Comment text.

Returns:

  • (String)

    Comment text


23
# File 'lib/vk/api/widgets/widget_comment.rb', line 23

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

#to_idInteger

Returns Wall owner.

Returns:

  • (Integer)

    Wall owner


15
# File 'lib/vk/api/widgets/widget_comment.rb', line 15

attribute :to_id, API::Types::Coercible::Int

#userAPI::Users::UserFull


19
# File 'lib/vk/api/widgets/widget_comment.rb', line 19

attribute :user, Dry::Types[API::Users::UserFull].optional.default(nil)