Sha256: 83b9e77861f886bdfbe0dd880d398832d0eb418284cba4363f4c611e7e3c412a

Contents?: true

Size: 1.08 KB

Versions: 1

Compression:

Stored size: 1.08 KB

Contents

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

module Vk
  module API
    class Gifts < Vk::Schema::Namespace
      # @see https://github.com/VKCOM/vk-api-schema/blob/master/objects.json
      class Gift < Vk::Schema::Object
        # @return [Integer] Gift ID
        attribute :id, API::Types::Coercible::Int.optional
        # @return [Integer] Gift sender ID
        attribute :from_id, API::Types::Coercible::Int.optional
        # @return [String] Comment text
        attribute :message, API::Types::Coercible::String.optional
        # @return [Integer] Date when gist has been sent in Unixtime
        attribute :date, API::Types::Coercible::Int.optional
        # @return [API::Gifts::Layout] @see https://github.com/VKCOM/vk-api-schema/blob/master/objects.json
        attribute :gift, Dry::Types[API::Gifts::Layout].optional
        # @return [Integer] Gift privacy
        attribute :privacy, API::Types::Coercible::Int.optional
        # @return [String] Hash
        attribute :gift_hash, API::Types::Coercible::String.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/gifts/gift.rb