Class: Vk::API::Messages::MessageAttachment

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

Overview

Instance Method Summary collapse

Instance Method Details

#audioAPI::Audio::AudioFull


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

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

#docAPI::Docs::Doc


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

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

#giftAPI::Gifts::Layout


25
# File 'lib/vk/api/messages/message_attachment.rb', line 25

attribute :gift, Dry::Types[API::Gifts::Layout].optional.default(nil)

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

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

#marketAPI::Market::MarketItem


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

attribute :market, Dry::Types[API::Market::MarketItem].optional.default(nil)

#market_market_albumAPI::Market::MarketAlbum


23
# File 'lib/vk/api/messages/message_attachment.rb', line 23

attribute :market_market_album, Dry::Types[API::Market::MarketAlbum].optional.default(nil)

#photoAPI::Photos::Photo


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

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

#stickerAPI::Base::Sticker


27
# File 'lib/vk/api/messages/message_attachment.rb', line 27

attribute :sticker, Dry::Types[API::Base::Sticker].optional.default(nil)

#typeString

Returns Attachment type.

Returns:

  • (String)

    Attachment type


33
# File 'lib/vk/api/messages/message_attachment.rb', line 33

attribute :type, API::Types::Coercible::String.enum("photo", "audio", "video", "doc", "link", "market", "market_market_album", "gift", "sticker", "wall", "wall_reply")

#videoAPI::Video::Video


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

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

#wallAPI::Wall::WallpostAttached


29
# File 'lib/vk/api/messages/message_attachment.rb', line 29

attribute :wall, Dry::Types[API::Wall::WallpostAttached].optional.default(nil)

#wall_replyAPI::Wall::WallComment


31
# File 'lib/vk/api/messages/message_attachment.rb', line 31

attribute :wall_reply, Dry::Types[API::Wall::WallComment].optional.default(nil)