Class: Vk::API::Apps::Methods::SendRequest
- Inherits:
-
Schema::Method
- Object
- Dry::Struct
- Schema::Method
- Vk::API::Apps::Methods::SendRequest
- Defined in:
- lib/vk/api/apps/methods/send_request.rb
Overview
Sends a request to another user in an app that uses VK authorization.
Arguments collapse
-
#key ⇒ String
Special string key to be sent with the request.
- #name ⇒ String
- #separate ⇒ Boolean
-
#text ⇒ String
Request text.
-
#type ⇒ String
Request type.
-
#user_id ⇒ Integer
Id of the user to send a request.
Instance Method Summary collapse
Methods inherited from Schema::Method
Constructor Details
#initialize(arguments) ⇒ Apps::Methods::SendRequest
|
# File 'lib/vk/api/apps/methods/send_request.rb', line 15
|
Instance Method Details
#key ⇒ String
Returns special string key to be sent with the request.
36 |
# File 'lib/vk/api/apps/methods/send_request.rb', line 36 attribute :key, API::Types::Coercible::String.optional.default(nil) |
#name ⇒ String
34 |
# File 'lib/vk/api/apps/methods/send_request.rb', line 34 attribute :name, API::Types::Coercible::String.optional.default(nil) |
#separate ⇒ Boolean
38 |
# File 'lib/vk/api/apps/methods/send_request.rb', line 38 attribute :separate, API::Types::Form::Bool.optional.default(nil) |
#text ⇒ String
Returns request text.
30 |
# File 'lib/vk/api/apps/methods/send_request.rb', line 30 attribute :text, API::Types::Coercible::String.optional.default(nil) |
#type ⇒ String
Returns request type. Values:; 'invite' – if the request is sent to a user who does not have the app installed;; 'request' – if a user has already installed the app.
32 |
# File 'lib/vk/api/apps/methods/send_request.rb', line 32 attribute :type, API::Types::Coercible::String.enum("request", "invite").optional.default("request") |