Class: Vk::API::Messages::AttachmentsHistory

Inherits:
Schema::Object
  • Object
show all
Defined in:
lib/vk/api/messages/attachments_history.rb

Overview

Instance Method Summary collapse

Instance Method Details

#audioAPI::Audio::AudioFull



17
# File 'lib/vk/api/messages/attachments_history.rb', line 17

attribute :audio, Dry::Types[API::Audio::AudioFull].optional.default(nil)

#docAPI::Docs::Doc



19
# File 'lib/vk/api/messages/attachments_history.rb', line 19

attribute :doc, Dry::Types[API::Docs::Doc].optional.default(nil)


21
# File 'lib/vk/api/messages/attachments_history.rb', line 21

attribute :link, Dry::Types[API::Messages::MessageLink].optional.default(nil)

#photoAPI::Photos::Photo



13
# File 'lib/vk/api/messages/attachments_history.rb', line 13

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

#typeString

Returns Attachments type.

Returns:

  • (String)

    Attachments type



11
# File 'lib/vk/api/messages/attachments_history.rb', line 11

attribute :type, API::Types::Coercible::String.enum("photo", "video", "audio", "doc", "link")

#videoAPI::Video::Video



15
# File 'lib/vk/api/messages/attachments_history.rb', line 15

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