Class: Vk::API::Friends::Methods::Add
- Inherits:
-
Schema::Method
- Object
- Dry::Struct
- Schema::Method
- Vk::API::Friends::Methods::Add
- Defined in:
- lib/vk/api/friends/methods/add.rb
Overview
Approves or creates a friend request.
Arguments collapse
-
#follow ⇒ Boolean
'1' to pass an incoming request to followers list.
-
#text ⇒ String
Text of the message (up to 500 characters) for the friend request, if any.
-
#user_id ⇒ Integer
ID of the user whose friend request will be approved or to whom a friend request will be sent.
Instance Method Summary collapse
- #initialize(arguments) ⇒ Friends::Methods::Add constructor
Methods inherited from Schema::Method
Constructor Details
Instance Method Details
#follow ⇒ Boolean
Returns '1' to pass an incoming request to followers list.
29 |
# File 'lib/vk/api/friends/methods/add.rb', line 29 attribute :follow, API::Types::Form::Bool.optional.default(nil) |