Class: Vk::API::Photos::Methods::GetAlbumsCount

Inherits:
Schema::Method
  • Object
show all
Defined in:
lib/vk/api/photos/methods/get_albums_count.rb

Overview

Returns the number of photo albums belonging to a user or community.

Arguments collapse

Instance Method Summary collapse

Methods inherited from Schema::Method

#call, #method, #to_hash

Constructor Details

#initialize(arguments) ⇒ Photos::Methods::GetAlbumsCount

Parameters:

  • arguments (Hash)

Options Hash (arguments):

  • :user_id (Integer)

    User ID.

  • :group_id (Integer)

    Community ID.


# File 'lib/vk/api/photos/methods/get_albums_count.rb', line 15

Instance Method Details

#group_idInteger

Returns Community ID.

Returns:

  • (Integer)

    Community ID.


26
# File 'lib/vk/api/photos/methods/get_albums_count.rb', line 26

attribute :group_id, API::Types::Coercible::Int.optional.default(nil)

#user_idInteger

Returns User ID.

Returns:

  • (Integer)

    User ID.


24
# File 'lib/vk/api/photos/methods/get_albums_count.rb', line 24

attribute :user_id, API::Types::Coercible::Int.optional.default(nil)