Class: Vk::API::Market::MarketItem

Inherits:
Schema::Object show all
Defined in:
lib/vk/api/market/market_item.rb

Overview

Instance Method Summary collapse

Instance Method Details

#availabilityInteger

Returns Information whether the item is available.

Returns:

  • (Integer)

    Information whether the item is available



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

attribute :availability, API::Types::Coercible::Int.enum(0, 1, 2)

#categoryAPI::Market::MarketCategory



21
# File 'lib/vk/api/market/market_item.rb', line 21

attribute :category, Dry::Types[API::Market::MarketCategory]

#dateInteger

Returns Date when the item has been created in Unixtime.

Returns:

  • (Integer)

    Date when the item has been created in Unixtime



23
# File 'lib/vk/api/market/market_item.rb', line 23

attribute :date, API::Types::Coercible::Int

#descriptionString

Returns Item description.

Returns:

  • (String)

    Item description



17
# File 'lib/vk/api/market/market_item.rb', line 17

attribute :description, API::Types::Coercible::String

#idInteger

Returns Item ID.

Returns:

  • (Integer)

    Item ID



11
# File 'lib/vk/api/market/market_item.rb', line 11

attribute :id, API::Types::Coercible::Int

#owner_idInteger

Returns Item owner's ID.

Returns:

  • (Integer)

    Item owner's ID



13
# File 'lib/vk/api/market/market_item.rb', line 13

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

#priceAPI::Market::Price



19
# File 'lib/vk/api/market/market_item.rb', line 19

attribute :price, Dry::Types[API::Market::Price]

#thumb_photoString

Returns URL of the preview image.

Returns:

  • (String)

    URL of the preview image



25
# File 'lib/vk/api/market/market_item.rb', line 25

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

#titleString

Returns Item title.

Returns:

  • (String)

    Item title



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

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