Class: Vk::API::Places::Methods::Add
- Inherits:
-
Schema::Method
- Object
- Dry::Struct
- Schema::Method
- Vk::API::Places::Methods::Add
- Defined in:
- lib/vk/api/places/methods/add.rb
Overview
Adds a new location to the location database.
Arguments collapse
-
#address ⇒ String
Street address of the location (e.g., '125 Elm Street').
-
#city ⇒ Integer
ID of the location's city.
-
#country ⇒ Integer
ID of the location's country.
-
#latitude ⇒ Number
Geographical latitude, in degrees (from '-90' to '90').
-
#longitude ⇒ Number
Geographical longitude, in degrees (from '-180' to '180').
-
#title ⇒ String
Title of the location.
-
#type ⇒ Integer
ID of the location's type (e.g., '1' — Home, '2' — Work).
Instance Method Summary collapse
- #initialize(arguments) ⇒ Places::Methods::Add constructor
Methods inherited from Schema::Method
Constructor Details
Instance Method Details
#address ⇒ String
Returns Street address of the location (e.g., '125 Elm Street').
41 |
# File 'lib/vk/api/places/methods/add.rb', line 41 attribute :address, API::Types::Coercible::String.optional.default(nil) |
#city ⇒ Integer
Returns ID of the location's city. To get city IDs, use the method.
39 |
# File 'lib/vk/api/places/methods/add.rb', line 39 attribute :city, API::Types::Coercible::Int.optional.default(nil) |
#country ⇒ Integer
Returns ID of the location's country. To get country IDs, use the method.
37 |
# File 'lib/vk/api/places/methods/add.rb', line 37 attribute :country, API::Types::Coercible::Int.optional.default(nil) |
#latitude ⇒ Number
Returns Geographical latitude, in degrees (from '-90' to '90').
33 |
# File 'lib/vk/api/places/methods/add.rb', line 33 attribute :latitude, API::Types::Coercible::Int |
#longitude ⇒ Number
Returns Geographical longitude, in degrees (from '-180' to '180').
35 |
# File 'lib/vk/api/places/methods/add.rb', line 35 attribute :longitude, API::Types::Coercible::Int |