Class: Vk::API::Polls::Methods::Create
- Inherits:
-
Schema::Method
- Object
- Dry::Struct
- Schema::Method
- Vk::API::Polls::Methods::Create
- Defined in:
- lib/vk/api/polls/methods/create.rb
Overview
Creates polls that can be attached to the users' or communities' posts.
Arguments collapse
-
#add_answers ⇒ String
Available answers list, for example:; " ["yes","no","maybe"]"; There can be from 1 to 10 answers.
-
#is_anonymous ⇒ Boolean
'1' – anonymous poll, participants list is hidden;; '0' – public poll, participants list is available;; Default value is '0'.
-
#owner_id ⇒ Integer
If a poll will be added to a communty it is required to send a negative group identifier.
-
#question ⇒ String
Question text.
Instance Method Summary collapse
- #initialize(arguments) ⇒ Polls::Methods::Create constructor
Methods inherited from Schema::Method
Constructor Details
#initialize(arguments) ⇒ Polls::Methods::Create
|
# File 'lib/vk/api/polls/methods/create.rb', line 15
|
Instance Method Details
#add_answers ⇒ String
Returns available answers list, for example:; " ["yes","no","maybe"]"; There can be from 1 to 10 answers.
32 |
# File 'lib/vk/api/polls/methods/create.rb', line 32 attribute :add_answers, API::Types::Coercible::String.optional.default(nil) |
#is_anonymous ⇒ Boolean
Returns '1' – anonymous poll, participants list is hidden;; '0' – public poll, participants list is available;; Default value is '0'.
28 |
# File 'lib/vk/api/polls/methods/create.rb', line 28 attribute :is_anonymous, API::Types::Form::Bool.optional.default(nil) |