Class: Vk::API::Notifications::NotificationsComment

Inherits:
Schema::Object
  • Object
show all
Defined in:
lib/vk/api/notifications/notifications_comment.rb

Overview

Instance Method Summary collapse

Instance Method Details

#dateInteger

Returns Date when the comment has been added in Unixtime.

Returns:

  • (Integer)

    Date when the comment has been added in Unixtime



15
# File 'lib/vk/api/notifications/notifications_comment.rb', line 15

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

#idInteger

Returns Comment ID.

Returns:

  • (Integer)

    Comment ID



11
# File 'lib/vk/api/notifications/notifications_comment.rb', line 11

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

#owner_idInteger

Returns Author ID.

Returns:

  • (Integer)

    Author ID



13
# File 'lib/vk/api/notifications/notifications_comment.rb', line 13

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

#photoAPI::Photos::Photo



19
# File 'lib/vk/api/notifications/notifications_comment.rb', line 19

attribute :photo, Dry::Types[API::Photos::Photo].optional.default(nil)

#postAPI::Wall::Wallpost



23
# File 'lib/vk/api/notifications/notifications_comment.rb', line 23

attribute :post, Dry::Types[API::Wall::Wallpost].optional.default(nil)

#textString

Returns Comment text.

Returns:

  • (String)

    Comment text



17
# File 'lib/vk/api/notifications/notifications_comment.rb', line 17

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

#topicAPI::Board::Topic



25
# File 'lib/vk/api/notifications/notifications_comment.rb', line 25

attribute :topic, Dry::Types[API::Board::Topic].optional.default(nil)

#videoAPI::Video::Video



21
# File 'lib/vk/api/notifications/notifications_comment.rb', line 21

attribute :video, Dry::Types[API::Video::Video].optional.default(nil)