Class: Vk::API::Gifts

Inherits:
Schema::Namespace show all
Defined in:
lib/vk/api/methods.rb,
lib/vk/api/objects.rb,
lib/vk/api/responses.rb,
lib/vk/api/gifts/gift.rb,
lib/vk/api/gifts/layout.rb,
lib/vk/api/gifts/methods/get.rb,
lib/vk/api/gifts/responses/get_response.rb

Defined Under Namespace

Modules: Methods, Responses Classes: Gift, Layout

Instance Attribute Summary

Attributes inherited from Schema::Namespace

#client

DSL collapse

Methods inherited from Schema::Namespace

#call, #initialize

Constructor Details

This class inherits a constructor from Vk::Schema::Namespace

Instance Method Details

#get(arguments = {}) ⇒ Vk::API::Gifts::Responses::GetResponse

Returns a list of user gifts.

Parameters:

  • arguments (Hash) (defaults to: {})

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.

Returns:

See Also:



5579
5580
5581
5582
5583
5584
5585
# File 'lib/vk/api/methods.rb', line 5579

def get(arguments = {})
  require "vk/api/gifts/methods/get"
  method = Methods::Get.new(arguments)
  response = method.call(@client)
  require "vk/api/gifts/responses/get_response"
  Responses::GetResponse.new(response.deep_symbolize_keys)
end