Class: Vk::API::Orders::Methods::GetAmount

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

Overview

Arguments collapse

Instance Method Summary collapse

Methods inherited from Schema::Method

#call, #method, #to_hash

Constructor Details

#initialize(arguments) ⇒ Orders::Methods::GetAmount

Parameters:

  • arguments (Hash)

Options Hash (arguments):

  • :user_id (Integer)

    @see https://github.com/VKCOM/vk-api-schema/blob/master/objects.json

  • :votes (Array)

    @see https://github.com/VKCOM/vk-api-schema/blob/master/objects.json



# File 'lib/vk/api/orders/methods/get_amount.rb', line 15

Instance Method Details

#user_idInteger

Returns @see https://github.com/VKCOM/vk-api-schema/blob/master/objects.json.

Returns:

  • (Integer)

    @see https://github.com/VKCOM/vk-api-schema/blob/master/objects.json



24
# File 'lib/vk/api/orders/methods/get_amount.rb', line 24

attribute :user_id, API::Types::Coercible::Int

#votesArray

Returns @see https://github.com/VKCOM/vk-api-schema/blob/master/objects.json.

Returns:

  • (Array)

    @see https://github.com/VKCOM/vk-api-schema/blob/master/objects.json



26
# File 'lib/vk/api/orders/methods/get_amount.rb', line 26

attribute :votes, API::Types::Coercible::Array.member(API::Types::Coercible::String).constrained(max_size: 100)