Class: Vk::API::Gifts::Gift
- Inherits:
-
Schema::Object
- Object
- Dry::Struct
- Schema::Object
- Vk::API::Gifts::Gift
- Defined in:
- lib/vk/api/gifts/gift.rb
Overview
Instance Method Summary collapse
-
#date ⇒ Integer
Date when gist has been sent in Unixtime.
-
#from_id ⇒ Integer
Gift sender ID.
- #gift ⇒ API::Gifts::Layout
-
#gift_hash ⇒ String
Hash.
-
#id ⇒ Integer
Gift ID.
-
#message ⇒ String
Comment text.
-
#privacy ⇒ Integer
Gift privacy.
Instance Method Details
#date ⇒ Integer
Returns 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_id ⇒ Integer
Returns Gift sender ID.
13 |
# File 'lib/vk/api/gifts/gift.rb', line 13 attribute :from_id, API::Types::Coercible::Int.optional.default(nil) |
#gift ⇒ API::Gifts::Layout
19 |
# File 'lib/vk/api/gifts/gift.rb', line 19 attribute :gift, Dry::Types[API::Gifts::Layout].optional.default(nil) |
#gift_hash ⇒ String
Returns Hash.
23 |
# File 'lib/vk/api/gifts/gift.rb', line 23 attribute :gift_hash, API::Types::Coercible::String.optional.default(nil) |
#id ⇒ Integer
Returns Gift ID.
11 |
# File 'lib/vk/api/gifts/gift.rb', line 11 attribute :id, API::Types::Coercible::Int.optional.default(nil) |