Class: Vk::API::Photos::Methods::Copy

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

Overview

Allows to copy a photo to the "Saved photos" album

Arguments collapse

Instance Method Summary collapse

Methods inherited from Schema::Method

#call, #method, #to_hash

Constructor Details

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

Parameters:

  • arguments (Hash)

Options Hash (arguments):

  • :owner_id (Integer)

    photo's owner ID

  • :photo_id (Integer)

    photo ID

  • :access_key (String)

    for private photos


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

Instance Method Details

#access_keyString

Returns for private photos.

Returns:

  • (String)

    for private photos


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

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

#owner_idInteger

Returns photo's owner ID.

Returns:

  • (Integer)

    photo's owner ID


25
# File 'lib/vk/api/photos/methods/copy.rb', line 25

attribute :owner_id, API::Types::Coercible::Int

#photo_idInteger

Returns photo ID.

Returns:

  • (Integer)

    photo ID


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

attribute :photo_id, API::Types::Coercible::Int