Class: Vk::API::Widgets::WidgetComment
- Inherits:
-
Schema::Object
- Object
- Dry::Struct
- Schema::Object
- Vk::API::Widgets::WidgetComment
- Defined in:
- lib/vk/api/widgets/widget_comment.rb
Overview
Instance Method Summary collapse
- #attachments ⇒ Array
-
#can_delete ⇒ Integer
Information whether current user can delete the comment.
- #comments ⇒ API::Widgets::CommentReplies
-
#date ⇒ Integer
Date when the comment has been added in Unixtime.
-
#from_id ⇒ Integer
Comment author ID.
-
#id ⇒ Integer
Comment ID.
- #likes ⇒ API::Base::LikesInfo
- #media ⇒ API::Widgets::CommentMedia
- #post_source ⇒ API::Wall::PostSource
-
#post_type ⇒ Integer
Post type.
- #reposts ⇒ API::Base::RepostsInfo
-
#text ⇒ String
Comment text.
-
#to_id ⇒ Integer
Wall owner.
- #user ⇒ API::Users::UserFull
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.
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.
17 |
# File 'lib/vk/api/widgets/widget_comment.rb', line 17 attribute :date, API::Types::Coercible::Int |
#from_id ⇒ Integer
Returns 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.
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.
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.
23 |
# File 'lib/vk/api/widgets/widget_comment.rb', line 23 attribute :text, API::Types::Coercible::String |
#to_id ⇒ Integer
Returns 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) |