Class: Vk::API::Photos::Methods::SaveWallPhoto

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

Overview

Saves a photo to a user's or community's wall after being uploaded.

Arguments collapse

Instance Method Summary collapse

Methods inherited from Schema::Method

#call, #method, #to_hash

Constructor Details

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

Parameters:

  • arguments (Hash)

Options Hash (arguments):


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

Instance Method Details

#group_idInteger

Returns ID of community on whose wall the photo will be saved.

Returns:

  • (Integer)

    ID of community on whose wall the photo will be saved.


29
# File 'lib/vk/api/photos/methods/save_wall_photo.rb', line 29

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

#hashString


35
# File 'lib/vk/api/photos/methods/save_wall_photo.rb', line 35

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

#photoString

Returns Parameter returned when the .

Returns:

  • (String)

    Parameter returned when the .


31
# File 'lib/vk/api/photos/methods/save_wall_photo.rb', line 31

attribute :photo, API::Types::Coercible::String

#serverInteger


33
# File 'lib/vk/api/photos/methods/save_wall_photo.rb', line 33

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

#user_idInteger

Returns ID of the user on whose wall the photo will be saved.

Returns:

  • (Integer)

    ID of the user on whose wall the photo will be saved.


27
# File 'lib/vk/api/photos/methods/save_wall_photo.rb', line 27

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