Class: Vk::API::Groups::Methods::Get
- Inherits:
-
Schema::Method
- Object
- Dry::Struct
- Schema::Method
- Vk::API::Groups::Methods::Get
- Defined in:
- lib/vk/api/groups/methods/get.rb
Overview
Returns a list of the communities to which a user belongs.; ;
Arguments collapse
-
#count ⇒ Integer
Number of communities to return.
-
#extended ⇒ Boolean
'1' — to return complete information about a user's communities; '0' — to return a list of community IDs without any additional fields (default);.
-
#fields ⇒ Array
Profile fields to return.;.
-
#filter ⇒ Array
Types of communities to return:; 'admin' — to return communities administered by the user ; 'editor' — to return communities where the user is an administrator or editor; 'moder' — to return communities where the user is an administrator, editor, or moderator; 'groups' — to return only groups; 'publics' — to return only public pages; 'events' — to return only events.
-
#offset ⇒ Integer
Offset needed to return a specific subset of communities.
-
#user_id ⇒ Integer
User ID.
Instance Method Summary collapse
- #initialize(arguments) ⇒ Groups::Methods::Get constructor
Methods inherited from Schema::Method
Constructor Details
Instance Method Details
#count ⇒ Integer
Returns Number of communities to return.
38 |
# File 'lib/vk/api/groups/methods/get.rb', line 38 attribute :count, API::Types::Coercible::Int.optional.default(nil) |
#extended ⇒ Boolean
Returns '1' — to return complete information about a user's communities; '0' — to return a list of community IDs without any additional fields (default);.
30 |
# File 'lib/vk/api/groups/methods/get.rb', line 30 attribute :extended, API::Types::Form::Bool.optional.default(nil) |
#fields ⇒ Array
Returns Profile fields to return.;.
34 |
# File 'lib/vk/api/groups/methods/get.rb', line 34 attribute :fields, API::Types::Coercible::Array.member(API::Types::Coercible::String).optional.default(nil) |
#filter ⇒ Array
Returns Types of communities to return:; 'admin' — to return communities administered by the user ; 'editor' — to return communities where the user is an administrator or editor; 'moder' — to return communities where the user is an administrator, editor, or moderator; 'groups' — to return only groups; 'publics' — to return only public pages; 'events' — to return only events.
32 |
# File 'lib/vk/api/groups/methods/get.rb', line 32 attribute :filter, API::Types::Coercible::Array.member(API::Types::Coercible::String).optional.default(nil) |