Class: TD::Types::PremiumGiveawayInfo::Completed
- Inherits:
-
TD::Types::PremiumGiveawayInfo
- Object
- Dry::Struct
- Base
- TD::Types::PremiumGiveawayInfo
- TD::Types::PremiumGiveawayInfo::Completed
- Defined in:
- lib/tdlib/types/premium_giveaway_info/completed.rb
Overview
Describes a completed giveaway.
Instance Attribute Summary collapse
-
#activation_count ⇒ Integer
Number of winners, which activated their gift codes.
-
#actual_winners_selection_date ⇒ Integer
Point in time (Unix timestamp) when the winners were selected.
-
#creation_date ⇒ Integer
Point in time (Unix timestamp) when the giveaway was created.
-
#gift_code ⇒ TD::Types::String
Telegram Premium gift code that was received by the current user; empty if the user isn’t a winner in the giveaway.
-
#was_refunded ⇒ Boolean
True, if the giveaway was canceled and was fully refunded.
-
#winner_count ⇒ Integer
Number of winners in the giveaway.
Method Summary
Methods inherited from Base
Instance Attribute Details
#activation_count ⇒ Integer
Number of winners, which activated their gift codes.
12 13 14 |
# File 'lib/tdlib/types/premium_giveaway_info/completed.rb', line 12 def activation_count @activation_count end |
#actual_winners_selection_date ⇒ Integer
Point in time (Unix timestamp) when the winners were selected. May be bigger than winners selection date specified in parameters of the giveaway.
12 13 14 |
# File 'lib/tdlib/types/premium_giveaway_info/completed.rb', line 12 def actual_winners_selection_date @actual_winners_selection_date end |
#creation_date ⇒ Integer
Point in time (Unix timestamp) when the giveaway was created.
12 13 14 |
# File 'lib/tdlib/types/premium_giveaway_info/completed.rb', line 12 def creation_date @creation_date end |
#gift_code ⇒ TD::Types::String
Telegram Premium gift code that was received by the current user; empty if the user isn’t a winner in the giveaway.
12 13 14 |
# File 'lib/tdlib/types/premium_giveaway_info/completed.rb', line 12 def gift_code @gift_code end |
#was_refunded ⇒ Boolean
True, if the giveaway was canceled and was fully refunded.
12 13 14 |
# File 'lib/tdlib/types/premium_giveaway_info/completed.rb', line 12 def was_refunded @was_refunded end |
#winner_count ⇒ Integer
Number of winners in the giveaway.
12 13 14 |
# File 'lib/tdlib/types/premium_giveaway_info/completed.rb', line 12 def winner_count @winner_count end |