Class: Telegram::Bot::Types::Gift
- Defined in:
- sig/telegram/bot/types/gift.rbs
Instance Attribute Summary collapse
-
#background ⇒ GiftBackground?
readonly
Returns the value of attribute background.
-
#has_colors ⇒ true?
readonly
Returns the value of attribute has_colors.
-
#id ⇒ String
readonly
Returns the value of attribute id.
-
#is_premium ⇒ true?
readonly
Returns the value of attribute is_premium.
-
#personal_remaining_count ⇒ Integer?
readonly
Returns the value of attribute personal_remaining_count.
-
#personal_total_count ⇒ Integer?
readonly
Returns the value of attribute personal_total_count.
-
#publisher_chat ⇒ Chat?
readonly
Returns the value of attribute publisher_chat.
-
#remaining_count ⇒ Integer?
readonly
Returns the value of attribute remaining_count.
-
#star_count ⇒ Integer
readonly
Returns the value of attribute star_count.
-
#sticker ⇒ Sticker
readonly
Returns the value of attribute sticker.
-
#total_count ⇒ Integer?
readonly
Returns the value of attribute total_count.
-
#unique_gift_variant_count ⇒ Integer?
readonly
Returns the value of attribute unique_gift_variant_count.
-
#upgrade_star_count ⇒ Integer?
readonly
Returns the value of attribute upgrade_star_count.
Attributes inherited from Base
Class Method Summary collapse
Methods included from Compactable
Methods included from PatternMatching
Instance Attribute Details
#background ⇒ GiftBackground? (readonly)
Returns the value of attribute background.
18 19 20 |
# File 'sig/telegram/bot/types/gift.rbs', line 18 def background @background end |
#has_colors ⇒ true? (readonly)
Returns the value of attribute has_colors.
13 14 15 |
# File 'sig/telegram/bot/types/gift.rbs', line 13 def has_colors @has_colors end |
#id ⇒ String (readonly)
Returns the value of attribute id.
8 9 10 |
# File 'sig/telegram/bot/types/gift.rbs', line 8 def id @id end |
#is_premium ⇒ true? (readonly)
Returns the value of attribute is_premium.
12 13 14 |
# File 'sig/telegram/bot/types/gift.rbs', line 12 def is_premium @is_premium end |
#personal_remaining_count ⇒ Integer? (readonly)
Returns the value of attribute personal_remaining_count.
17 18 19 |
# File 'sig/telegram/bot/types/gift.rbs', line 17 def personal_remaining_count @personal_remaining_count end |
#personal_total_count ⇒ Integer? (readonly)
Returns the value of attribute personal_total_count.
16 17 18 |
# File 'sig/telegram/bot/types/gift.rbs', line 16 def personal_total_count @personal_total_count end |
#publisher_chat ⇒ Chat? (readonly)
Returns the value of attribute publisher_chat.
20 21 22 |
# File 'sig/telegram/bot/types/gift.rbs', line 20 def publisher_chat @publisher_chat end |
#remaining_count ⇒ Integer? (readonly)
Returns the value of attribute remaining_count.
15 16 17 |
# File 'sig/telegram/bot/types/gift.rbs', line 15 def remaining_count @remaining_count end |
#star_count ⇒ Integer (readonly)
Returns the value of attribute star_count.
10 11 12 |
# File 'sig/telegram/bot/types/gift.rbs', line 10 def star_count @star_count end |
#sticker ⇒ Sticker (readonly)
Returns the value of attribute sticker.
9 10 11 |
# File 'sig/telegram/bot/types/gift.rbs', line 9 def sticker @sticker end |
#total_count ⇒ Integer? (readonly)
Returns the value of attribute total_count.
14 15 16 |
# File 'sig/telegram/bot/types/gift.rbs', line 14 def total_count @total_count end |
#unique_gift_variant_count ⇒ Integer? (readonly)
Returns the value of attribute unique_gift_variant_count.
19 20 21 |
# File 'sig/telegram/bot/types/gift.rbs', line 19 def unique_gift_variant_count @unique_gift_variant_count end |
#upgrade_star_count ⇒ Integer? (readonly)
Returns the value of attribute upgrade_star_count.
11 12 13 |
# File 'sig/telegram/bot/types/gift.rbs', line 11 def upgrade_star_count @upgrade_star_count end |
Class Method Details
.new(id:, sticker:, star_count:, upgrade_star_count:, is_premium:, has_colors:, total_count:, remaining_count:, personal_total_count:, personal_remaining_count:, background:, unique_gift_variant_count:, publisher_chat:) ⇒ instance .new(attributes) ⇒ instance
6 7 |
# File 'sig/telegram/bot/types/gift.rbs', line 6
def self.new: (id: String, sticker: Sticker, star_count: Integer, ?upgrade_star_count: Integer, ?is_premium: true, ?has_colors: true, ?total_count: Integer, ?remaining_count: Integer, ?personal_total_count: Integer, ?personal_remaining_count: Integer, ?background: GiftBackground, ?unique_gift_variant_count: Integer, ?publisher_chat: Chat) -> instance
| (?Hash[Symbol | String, untyped] attributes) -> instance
|