Class: Vk::API::Photos::Methods::Save

Inherits:
Schema::Method show all
Defined in:
lib/vk/api/photos/methods/save.rb

Overview

Saves photos after successful uploading.

Arguments collapse

Instance Method Summary collapse

Methods inherited from Schema::Method

#call, #method, #to_hash

Constructor Details

#initialize(arguments) ⇒ Photos::Methods::Save

Parameters:

  • arguments (Hash)

Options Hash (arguments):

  • :album_id (Integer)

    ID of the album to save photos to.

  • :group_id (Integer)

    ID of the community to save photos to.

  • :server (Integer)

    Parameter returned when .

  • :photos_list (String)

    Parameter returned when .

  • :hash (String)

    Parameter returned when .

  • :latitude (Number)

    Geographical latitude, in degrees (from '-90' to '90').

  • :longitude (Number)

    Geographical longitude, in degrees (from '-180' to '180').

  • :caption (String)

    Text describing the photo. 2048 digits max.


# File 'lib/vk/api/photos/methods/save.rb', line 15

Instance Method Details

#album_idInteger

Returns ID of the album to save photos to.

Returns:

  • (Integer)

    ID of the album to save photos to.


30
# File 'lib/vk/api/photos/methods/save.rb', line 30

attribute :album_id, API::Types::Coercible::Int.optional.default(nil)

#captionString

Returns Text describing the photo. 2048 digits max.

Returns:

  • (String)

    Text describing the photo. 2048 digits max.


44
# File 'lib/vk/api/photos/methods/save.rb', line 44

attribute :caption, API::Types::Coercible::String.optional.default(nil)

#group_idInteger

Returns ID of the community to save photos to.

Returns:

  • (Integer)

    ID of the community to save photos to.


32
# File 'lib/vk/api/photos/methods/save.rb', line 32

attribute :group_id, API::Types::Coercible::Int.optional.default(nil)

#hashString

Returns Parameter returned when .

Returns:

  • (String)

    Parameter returned when .


38
# File 'lib/vk/api/photos/methods/save.rb', line 38

attribute :hash, API::Types::Coercible::String.optional.default(nil)

#latitudeNumber

Returns Geographical latitude, in degrees (from '-90' to '90').

Returns:

  • (Number)

    Geographical latitude, in degrees (from '-90' to '90').


40
# File 'lib/vk/api/photos/methods/save.rb', line 40

attribute :latitude, API::Types::Coercible::Int.optional.default(nil)

#longitudeNumber

Returns Geographical longitude, in degrees (from '-180' to '180').

Returns:

  • (Number)

    Geographical longitude, in degrees (from '-180' to '180').


42
# File 'lib/vk/api/photos/methods/save.rb', line 42

attribute :longitude, API::Types::Coercible::Int.optional.default(nil)

#photos_listString

Returns Parameter returned when .

Returns:

  • (String)

    Parameter returned when .


36
# File 'lib/vk/api/photos/methods/save.rb', line 36

attribute :photos_list, API::Types::Coercible::String.optional.default(nil)

#serverInteger

Returns Parameter returned when .

Returns:

  • (Integer)

    Parameter returned when .


34
# File 'lib/vk/api/photos/methods/save.rb', line 34

attribute :server, API::Types::Coercible::Int.optional.default(nil)