Class: Vk::API::Market::Methods::EditAlbum

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

Overview

Edits a collection of items

Arguments collapse

Instance Method Summary collapse

Methods inherited from Schema::Method

#call, #method, #to_hash

Constructor Details

#initialize(arguments) ⇒ Market::Methods::EditAlbum

Parameters:

  • arguments (Hash)

Options Hash (arguments):

  • :owner_id (Integer)

    ID of an collection owner community.

  • :album_id (Integer)

    Collection ID.

  • :title (String)

    Collection title.

  • :photo_id (Integer)

    Cover photo id

  • :main_album (Boolean)

    Set as main ('1' – set, '0' – no).


# File 'lib/vk/api/market/methods/edit_album.rb', line 15

Instance Method Details

#album_idInteger

Returns Collection ID.

Returns:

  • (Integer)

    Collection ID.


29
# File 'lib/vk/api/market/methods/edit_album.rb', line 29

attribute :album_id, API::Types::Coercible::Int

#main_albumBoolean

Returns Set as main ('1' – set, '0' – no).

Returns:

  • (Boolean)

    Set as main ('1' – set, '0' – no).


35
# File 'lib/vk/api/market/methods/edit_album.rb', line 35

attribute :main_album, API::Types::Form::Bool.optional.default(nil)

#owner_idInteger

Returns ID of an collection owner community.

Returns:

  • (Integer)

    ID of an collection owner community.


27
# File 'lib/vk/api/market/methods/edit_album.rb', line 27

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

#photo_idInteger

Returns Cover photo id.

Returns:

  • (Integer)

    Cover photo id


33
# File 'lib/vk/api/market/methods/edit_album.rb', line 33

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

#titleString

Returns Collection title.

Returns:

  • (String)

    Collection title.


31
# File 'lib/vk/api/market/methods/edit_album.rb', line 31

attribute :title, API::Types::Coercible::String