Class: Vk::API::Messages::MessageAttachment
- Inherits:
-
Schema::Object
- Object
- Dry::Struct
- Schema::Object
- Vk::API::Messages::MessageAttachment
- Defined in:
- lib/vk/api/messages/message_attachment.rb
Overview
Instance Method Summary collapse
- #audio ⇒ API::Audio::AudioFull
- #doc ⇒ API::Docs::Doc
- #gift ⇒ API::Gifts::Layout
- #link ⇒ API::Messages::MessageLink
- #market ⇒ API::Market::MarketItem
- #market_market_album ⇒ API::Market::MarketAlbum
- #photo ⇒ API::Photos::Photo
- #sticker ⇒ API::Base::Sticker
-
#type ⇒ String
Attachment type.
- #video ⇒ API::Video::Video
- #wall ⇒ API::Wall::WallpostAttached
- #wall_reply ⇒ API::Wall::WallComment
Instance Method Details
#audio ⇒ API::Audio::AudioFull
13 |
# File 'lib/vk/api/messages/message_attachment.rb', line 13 attribute :audio, Dry::Types[API::Audio::AudioFull].optional.default(nil) |
#doc ⇒ API::Docs::Doc
17 |
# File 'lib/vk/api/messages/message_attachment.rb', line 17 attribute :doc, Dry::Types[API::Docs::Doc].optional.default(nil) |
#gift ⇒ API::Gifts::Layout
25 |
# File 'lib/vk/api/messages/message_attachment.rb', line 25 attribute :gift, Dry::Types[API::Gifts::Layout].optional.default(nil) |
#link ⇒ API::Messages::MessageLink
19 |
# File 'lib/vk/api/messages/message_attachment.rb', line 19 attribute :link, Dry::Types[API::Messages::MessageLink].optional.default(nil) |
#market ⇒ API::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_album ⇒ API::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) |
#photo ⇒ API::Photos::Photo
11 |
# File 'lib/vk/api/messages/message_attachment.rb', line 11 attribute :photo, Dry::Types[API::Photos::Photo].optional.default(nil) |
#sticker ⇒ API::Base::Sticker
27 |
# File 'lib/vk/api/messages/message_attachment.rb', line 27 attribute :sticker, Dry::Types[API::Base::Sticker].optional.default(nil) |
#type ⇒ String
Returns 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") |
#video ⇒ API::Video::Video
15 |
# File 'lib/vk/api/messages/message_attachment.rb', line 15 attribute :video, Dry::Types[API::Video::Video].optional.default(nil) |
#wall ⇒ API::Wall::WallpostAttached
29 |
# File 'lib/vk/api/messages/message_attachment.rb', line 29 attribute :wall, Dry::Types[API::Wall::WallpostAttached].optional.default(nil) |
#wall_reply ⇒ API::Wall::WallComment
31 |
# File 'lib/vk/api/messages/message_attachment.rb', line 31 attribute :wall_reply, Dry::Types[API::Wall::WallComment].optional.default(nil) |