Class: Vk::API::Photos::Methods::PutTag
- Inherits:
-
Schema::Method
- Object
- Dry::Struct
- Schema::Method
- Vk::API::Photos::Methods::PutTag
- Defined in:
- lib/vk/api/photos/methods/put_tag.rb
Overview
Adds a tag on the photo.
Arguments collapse
-
#owner_id ⇒ Integer
ID of the user or community that owns the photo.
-
#photo_id ⇒ Integer
Photo ID.
-
#user_id ⇒ Integer
ID of the user to be tagged.
-
#x ⇒ Number
Upper left-corner coordinate of the tagged area (as a percentage of the photo's width).
-
#x2 ⇒ Number
Lower right-corner coordinate of the tagged area (as a percentage of the photo's width).
-
#y ⇒ Number
Upper left-corner coordinate of the tagged area (as a percentage of the photo's height).
-
#y2 ⇒ Number
Lower right-corner coordinate of the tagged area (as a percentage of the photo's height).
Instance Method Summary collapse
- #initialize(arguments) ⇒ Photos::Methods::PutTag constructor
Methods inherited from Schema::Method
Constructor Details
#initialize(arguments) ⇒ Photos::Methods::PutTag
|
# File 'lib/vk/api/photos/methods/put_tag.rb', line 15
|
Instance Method Details
#owner_id ⇒ Integer
Returns ID of the user or community that owns the photo.
29 |
# File 'lib/vk/api/photos/methods/put_tag.rb', line 29 attribute :owner_id, API::Types::Coercible::Int.optional.default(nil) |
#photo_id ⇒ Integer
Returns Photo ID.
31 |
# File 'lib/vk/api/photos/methods/put_tag.rb', line 31 attribute :photo_id, API::Types::Coercible::Int |
#user_id ⇒ Integer
Returns ID of the user to be tagged.
33 |
# File 'lib/vk/api/photos/methods/put_tag.rb', line 33 attribute :user_id, API::Types::Coercible::Int |
#x ⇒ Number
Returns Upper left-corner coordinate of the tagged area (as a percentage of the photo's width).
35 |
# File 'lib/vk/api/photos/methods/put_tag.rb', line 35 attribute :x, API::Types::Coercible::Int.optional.default(nil) |
#x2 ⇒ Number
Returns Lower right-corner coordinate of the tagged area (as a percentage of the photo's width).
39 |
# File 'lib/vk/api/photos/methods/put_tag.rb', line 39 attribute :x2, API::Types::Coercible::Int.optional.default(nil) |