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

#date ⇒ Integer

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)

#id ⇒ Integer

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

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)

#photo ⇒ API::Photos::Photo



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

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

#post ⇒ API::Wall::Wallpost



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

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

#text ⇒ String

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)

#topic ⇒ API::Board::Topic



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

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

#video ⇒ API::Video::Video



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

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