Class: Vk::API::Market::Methods::AddAlbum

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

Overview

Creates new collection of items

Arguments collapse

Instance Method Summary collapse

Methods inherited from Schema::Method

#call, #method, #to_hash

Constructor Details

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

Parameters:

  • arguments (Hash)

Options Hash (arguments):

  • :owner_id (Integer)

    ID of an item owner community.

  • :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/add_album.rb', line 15

Instance Method Details

#main_albumBoolean

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

Returns:

  • (Boolean)

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


32
# File 'lib/vk/api/market/methods/add_album.rb', line 32

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

#owner_idInteger

Returns ID of an item owner community.

Returns:

  • (Integer)

    ID of an item owner community.


26
# File 'lib/vk/api/market/methods/add_album.rb', line 26

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

#photo_idInteger

Returns Cover photo ID.

Returns:

  • (Integer)

    Cover photo ID.


30
# File 'lib/vk/api/market/methods/add_album.rb', line 30

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

#titleString

Returns Collection title.

Returns:

  • (String)

    Collection title.


28
# File 'lib/vk/api/market/methods/add_album.rb', line 28

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