Class: Vk::API::Board::Methods::AddTopic
- Inherits:
-
Schema::Method
- Object
- Dry::Struct
- Schema::Method
- Vk::API::Board::Methods::AddTopic
- Defined in:
- lib/vk/api/board/methods/add_topic.rb
Overview
Creates a new topic on a community's discussion board.
Arguments collapse
-
#attachments ⇒ Array
List of media objects attached to the topic, in the following format:; "
, "; '' — Type of media object:; 'photo' — photo; 'video' — video; 'audio' — audio; 'doc' — document; ' ' — ID of the media owner. -
#from_group ⇒ Boolean
For a community:; '1' — to post the topic as by the community; '0' — to post the topic as by the user (default).
-
#group_id ⇒ Integer
ID of the community that owns the discussion board.
-
#text ⇒ String
Text of the topic.
-
#title ⇒ String
Topic title.
Instance Method Summary collapse
Methods inherited from Schema::Method
Constructor Details
#initialize(arguments) ⇒ Board::Methods::AddTopic
|
# File 'lib/vk/api/board/methods/add_topic.rb', line 15
|
Instance Method Details
#attachments ⇒ Array
Returns List of media objects attached to the topic, in the following format:; "
35 |
# File 'lib/vk/api/board/methods/add_topic.rb', line 35 attribute :attachments, API::Types::Coercible::Array.member(API::Types::Coercible::String).optional.default(nil) |
#from_group ⇒ Boolean
Returns For a community:; '1' — to post the topic as by the community; '0' — to post the topic as by the user (default).
33 |
# File 'lib/vk/api/board/methods/add_topic.rb', line 33 attribute :from_group, API::Types::Form::Bool.optional.default(nil) |
#group_id ⇒ Integer
Returns ID of the community that owns the discussion board.
27 |
# File 'lib/vk/api/board/methods/add_topic.rb', line 27 attribute :group_id, API::Types::Coercible::Int |