Class: Vk::API::Notifications::Notification

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

Overview

Instance Method Summary collapse

Instance Method Details

#dateInteger

Returns Date when the event has been occured.

Returns:

  • (Integer)

    Date when the event has been occured


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

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

#feedbackAPI::Notifications::Feedback


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

attribute :feedback, Dry::Types[API::Notifications::Feedback].optional.default(nil)

#parentAPI::Wall::WallpostToId, ...


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

attribute :parent, Dry::Types[API::Wall::WallpostToId] | Dry::Types[API::Photos::Photo] | Dry::Types[API::Board::Topic] | Dry::Types[API::Video::Video] | Dry::Types[API::Notifications::NotificationsComment].optional.default(nil)

#replyAPI::Notifications::Reply


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

attribute :reply, Dry::Types[API::Notifications::Reply].optional.default(nil)

#typeString

Returns Notification type.

Returns:

  • (String)

    Notification type


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

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