Class: Vk::API::Gifts::Methods::Get

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

Overview

Returns a list of user gifts.

Arguments collapse

Instance Method Summary collapse

Methods inherited from Schema::Method

#call, #method, #to_hash

Constructor Details

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

Parameters:

  • arguments (Hash)

Options Hash (arguments):

  • :user_id (Integer)

    User ID.

  • :count (Integer)

    Number of gifts to return.

  • :offset (Integer)

    Offset needed to return a specific subset of results.



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

Instance Method Details

#countInteger

Returns Number of gifts to return.

Returns:

  • (Integer)

    Number of gifts to return.



27
# File 'lib/vk/api/gifts/methods/get.rb', line 27

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

#offsetInteger

Returns Offset needed to return a specific subset of results.

Returns:

  • (Integer)

    Offset needed to return a specific subset of results.



29
# File 'lib/vk/api/gifts/methods/get.rb', line 29

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

#user_idInteger

Returns User ID.

Returns:

  • (Integer)

    User ID.



25
# File 'lib/vk/api/gifts/methods/get.rb', line 25

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