Sha256: 4701c95616bf13fac986901c8302c7e8379b0a934bdf8ab8a39ee19cb52d431b

Contents?: true

Size: 1.05 KB

Versions: 1

Compression:

Stored size: 1.05 KB

Contents

# frozen_string_literal: true
require 'vk/api/objects'
require 'vk/schema/namespace'

module Vk
  module API
    class Market < Vk::Schema::Namespace
      # @see https://github.com/VKCOM/vk-api-schema/blob/master/objects.json
      class MarketItemFull < Vk::Schema::Object
        # @return [Array] @see https://github.com/VKCOM/vk-api-schema/blob/master/objects.json
        attribute :photos, API::Types::Coercible::Array.member(API::Photos::Photo).optional
        # @return [API::Base::BoolInt] Information whether current use can comment the item
        attribute :can_comment, API::Base::BoolInt.optional
        # @return [API::Base::BoolInt] Information whether current use can repost the item
        attribute :can_repost, API::Base::BoolInt.optional
        # @return [API::Base::Likes] @see https://github.com/VKCOM/vk-api-schema/blob/master/objects.json
        attribute :likes, Dry::Types[API::Base::Likes].optional
        # @return [Integer] Views number
        attribute :views_count, API::Types::Coercible::Int.optional
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
vk-0.99.5.53.alpha lib/vk/api/market/market_item_full.rb