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

#attachments ⇒ Array



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_delete ⇒ Integer

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)

#comments ⇒ API::Widgets::CommentReplies



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

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

#date ⇒ Integer

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_id ⇒ Integer

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

#id ⇒ Integer

Returns Comment ID.

Returns:

  • (Integer) —

    Comment ID



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

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

#likes ⇒ API::Base::LikesInfo



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

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

#media ⇒ API::Widgets::CommentMedia



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

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

#post_source ⇒ API::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_type ⇒ Integer

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

#reposts ⇒ API::Base::RepostsInfo



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

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

#text ⇒ String

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_id ⇒ Integer

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

#user ⇒ API::Users::UserFull



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

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