Class: Vk::API::Gifts::Gift

Inherits:
Schema::Object show all
Defined in:
lib/vk/api/gifts/gift.rb

Overview

Instance Method Summary collapse

Instance Method Details

#dateInteger

Returns Date when gist has been sent in Unixtime.

Returns:

  • (Integer)

    Date when gist has been sent in Unixtime



17
# File 'lib/vk/api/gifts/gift.rb', line 17

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

#from_idInteger

Returns Gift sender ID.

Returns:

  • (Integer)

    Gift sender ID



13
# File 'lib/vk/api/gifts/gift.rb', line 13

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

#giftAPI::Gifts::Layout



19
# File 'lib/vk/api/gifts/gift.rb', line 19

attribute :gift, Dry::Types[API::Gifts::Layout].optional.default(nil)

#gift_hashString

Returns Hash.

Returns:

  • (String)

    Hash



23
# File 'lib/vk/api/gifts/gift.rb', line 23

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

#idInteger

Returns Gift ID.

Returns:

  • (Integer)

    Gift ID



11
# File 'lib/vk/api/gifts/gift.rb', line 11

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

#messageString

Returns Comment text.

Returns:

  • (String)

    Comment text



15
# File 'lib/vk/api/gifts/gift.rb', line 15

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

#privacyInteger

Returns Gift privacy.

Returns:

  • (Integer)

    Gift privacy



21
# File 'lib/vk/api/gifts/gift.rb', line 21

attribute :privacy, API::Types::Coercible::Int.enum(0, 1, 2).optional.default(nil)