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

#availability ⇒ Integer

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)

#category ⇒ API::Market::MarketCategory



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

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

#date ⇒ Integer

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

#description ⇒ String

Returns Item description.

Returns:

  • (String) —

    Item description



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

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

#id ⇒ Integer

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_id ⇒ Integer

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

#price ⇒ API::Market::Price



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

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

#thumb_photo ⇒ String

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)

#title ⇒ String

Returns Item title.

Returns:

  • (String) —

    Item title



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

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