Class: Vk::API::Database::Methods::GetCountries
- Inherits:
-
Schema::Method
- Object
- Dry::Struct
- Schema::Method
- Vk::API::Database::Methods::GetCountries
- Defined in:
- lib/vk/api/database/methods/get_countries.rb
Overview
Returns a list of countries.
Arguments collapse
-
#code ⇒ String
Country codes in standard.
-
#count ⇒ Integer
Number of countries to return.
-
#need_all ⇒ Boolean
'1' — to return a full list of all countries; '0' — to return a list of countries near the current user's country (default).;.
-
#offset ⇒ Integer
Offset needed to return a specific subset of countries.
Instance Method Summary collapse
Methods inherited from Schema::Method
Constructor Details
#initialize(arguments) ⇒ Database::Methods::GetCountries
|
# File 'lib/vk/api/database/methods/get_countries.rb', line 15
|
Instance Method Details
#code ⇒ String
Returns Country codes in standard.
28 |
# File 'lib/vk/api/database/methods/get_countries.rb', line 28 attribute :code, API::Types::Coercible::String.optional.default(nil) |
#count ⇒ Integer
Returns Number of countries to return.
32 |
# File 'lib/vk/api/database/methods/get_countries.rb', line 32 attribute :count, API::Types::Coercible::Int.optional.default(100) |