Class: Vk::API::Polls::Methods::Edit
- Inherits:
-
Schema::Method
- Object
- Dry::Struct
- Schema::Method
- Vk::API::Polls::Methods::Edit
- Defined in:
- lib/vk/api/polls/methods/edit.rb
Overview
Edits created polls
Arguments collapse
-
#add_answers ⇒ String
Answers list, for example: ; "["yes","no","maybe"]".
-
#delete_answers ⇒ String
List of answer ids to be deleted.
-
#edit_answers ⇒ String
Object containing answers that need to be edited;; key – answer id, value – new answer text.; Example:; \$1"382967099":"option1", "382967103":"option2"\$1".
-
#owner_id ⇒ Integer
Poll owner id.
-
#poll_id ⇒ Integer
Edited poll's id.
-
#question ⇒ String
New question text.
Instance Method Summary collapse
- #initialize(arguments) ⇒ Polls::Methods::Edit constructor
Methods inherited from Schema::Method
Constructor Details
Instance Method Details
#add_answers ⇒ String
Returns answers list, for example: ; "["yes","no","maybe"]".
34 |
# File 'lib/vk/api/polls/methods/edit.rb', line 34 attribute :add_answers, API::Types::Coercible::String.optional.default(nil) |
#delete_answers ⇒ String
Returns list of answer ids to be deleted. For example:; "[382967099, 382967103]".
38 |
# File 'lib/vk/api/polls/methods/edit.rb', line 38 attribute :delete_answers, API::Types::Coercible::String.optional.default(nil) |
#edit_answers ⇒ String
Returns object containing answers that need to be edited;; key – answer id, value – new answer text.; Example:; \$1"382967099":"option1", "382967103":"option2"\$1".
36 |
# File 'lib/vk/api/polls/methods/edit.rb', line 36 attribute :edit_answers, API::Types::Coercible::String.optional.default(nil) |
#owner_id ⇒ Integer
Returns poll owner id.
28 |
# File 'lib/vk/api/polls/methods/edit.rb', line 28 attribute :owner_id, API::Types::Coercible::Int |