Class: Telegram::Bot::Types::GiveawayCompleted
- Defined in:
- sig/telegram/bot/types/giveaway_completed.rbs
Instance Attribute Summary collapse
-
#giveaway_message ⇒ Message?
readonly
Returns the value of attribute giveaway_message.
-
#is_star_giveaway ⇒ true?
readonly
Returns the value of attribute is_star_giveaway.
-
#unclaimed_prize_count ⇒ Integer?
readonly
Returns the value of attribute unclaimed_prize_count.
-
#winner_count ⇒ Integer
readonly
Returns the value of attribute winner_count.
Attributes inherited from Base
Class Method Summary collapse
Methods included from Compactable
Methods included from PatternMatching
Instance Attribute Details
#giveaway_message ⇒ Message? (readonly)
Returns the value of attribute giveaway_message.
10 11 12 |
# File 'sig/telegram/bot/types/giveaway_completed.rbs', line 10 def @giveaway_message end |
#is_star_giveaway ⇒ true? (readonly)
Returns the value of attribute is_star_giveaway.
11 12 13 |
# File 'sig/telegram/bot/types/giveaway_completed.rbs', line 11 def is_star_giveaway @is_star_giveaway end |
#unclaimed_prize_count ⇒ Integer? (readonly)
Returns the value of attribute unclaimed_prize_count.
9 10 11 |
# File 'sig/telegram/bot/types/giveaway_completed.rbs', line 9 def unclaimed_prize_count @unclaimed_prize_count end |
#winner_count ⇒ Integer (readonly)
Returns the value of attribute winner_count.
8 9 10 |
# File 'sig/telegram/bot/types/giveaway_completed.rbs', line 8 def winner_count @winner_count end |
Class Method Details
.new(winner_count:, unclaimed_prize_count:, giveaway_message:, is_star_giveaway:) ⇒ instance .new(attributes) ⇒ instance
6 7 |
# File 'sig/telegram/bot/types/giveaway_completed.rbs', line 6
def self.new: (winner_count: Integer, ?unclaimed_prize_count: Integer, ?giveaway_message: Message, ?is_star_giveaway: true) -> instance
| (?Hash[Symbol | String, untyped] attributes) -> instance
|