Class: Vk::API::Stats::Methods::Get

Inherits:
Schema::Method show all
Defined in:
lib/vk/api/stats/methods/get.rb

Overview

Returns statistics of a community or an application.

Arguments collapse

Instance Method Summary collapse

Methods inherited from Schema::Method

#call, #method, #to_hash

Constructor Details

#initialize(arguments) ⇒ Stats::Methods::Get

Parameters:

  • arguments (Hash)

Options Hash (arguments):

  • :group_id (Integer)

    Community ID.

  • :app_id (Integer)

    Application ID.

  • :date_from (String)

    Latest datestamp (in Unix time) of statistics to return.

  • :date_to (String)

    End datestamp (in Unix time) of statistics to return.



# File 'lib/vk/api/stats/methods/get.rb', line 15

Instance Method Details

#app_idInteger

Returns Application ID.

Returns:

  • (Integer)

    Application ID.



28
# File 'lib/vk/api/stats/methods/get.rb', line 28

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

#date_fromString

Returns Latest datestamp (in Unix time) of statistics to return.

Returns:

  • (String)

    Latest datestamp (in Unix time) of statistics to return.



30
# File 'lib/vk/api/stats/methods/get.rb', line 30

attribute :date_from, API::Types::Coercible::String.optional.default(nil)

#date_toString

Returns End datestamp (in Unix time) of statistics to return.

Returns:

  • (String)

    End datestamp (in Unix time) of statistics to return.



32
# File 'lib/vk/api/stats/methods/get.rb', line 32

attribute :date_to, API::Types::Coercible::String.optional.default(nil)

#group_idInteger

Returns Community ID.

Returns:

  • (Integer)

    Community ID.



26
# File 'lib/vk/api/stats/methods/get.rb', line 26

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