Class: Telegram::Bot::Types::UniqueGift
- Defined in:
- sig/telegram/bot/types/unique_gift.rbs
Instance Attribute Summary collapse
-
#backdrop ⇒ UniqueGiftBackdrop
readonly
Returns the value of attribute backdrop.
-
#base_name ⇒ String
readonly
Returns the value of attribute base_name.
-
#colors ⇒ UniqueGiftColors?
readonly
Returns the value of attribute colors.
-
#gift_id ⇒ String
readonly
Returns the value of attribute gift_id.
-
#is_burned ⇒ true?
readonly
Returns the value of attribute is_burned.
-
#is_from_blockchain ⇒ true?
readonly
Returns the value of attribute is_from_blockchain.
-
#is_premium ⇒ true?
readonly
Returns the value of attribute is_premium.
-
#model ⇒ UniqueGiftModel
readonly
Returns the value of attribute model.
-
#name ⇒ String
readonly
Returns the value of attribute name.
-
#number ⇒ Integer
readonly
Returns the value of attribute number.
-
#publisher_chat ⇒ Chat?
readonly
Returns the value of attribute publisher_chat.
-
#symbol ⇒ UniqueGiftSymbol
readonly
Returns the value of attribute symbol.
Attributes inherited from Base
Class Method Summary collapse
Methods included from Compactable
Methods included from PatternMatching
Instance Attribute Details
#backdrop ⇒ UniqueGiftBackdrop (readonly)
Returns the value of attribute backdrop.
14 15 16 |
# File 'sig/telegram/bot/types/unique_gift.rbs', line 14 def backdrop @backdrop end |
#base_name ⇒ String (readonly)
Returns the value of attribute base_name.
9 10 11 |
# File 'sig/telegram/bot/types/unique_gift.rbs', line 9 def base_name @base_name end |
#colors ⇒ UniqueGiftColors? (readonly)
Returns the value of attribute colors.
18 19 20 |
# File 'sig/telegram/bot/types/unique_gift.rbs', line 18 def colors @colors end |
#gift_id ⇒ String (readonly)
Returns the value of attribute gift_id.
8 9 10 |
# File 'sig/telegram/bot/types/unique_gift.rbs', line 8 def gift_id @gift_id end |
#is_burned ⇒ true? (readonly)
Returns the value of attribute is_burned.
16 17 18 |
# File 'sig/telegram/bot/types/unique_gift.rbs', line 16 def is_burned @is_burned end |
#is_from_blockchain ⇒ true? (readonly)
Returns the value of attribute is_from_blockchain.
17 18 19 |
# File 'sig/telegram/bot/types/unique_gift.rbs', line 17 def is_from_blockchain @is_from_blockchain end |
#is_premium ⇒ true? (readonly)
Returns the value of attribute is_premium.
15 16 17 |
# File 'sig/telegram/bot/types/unique_gift.rbs', line 15 def is_premium @is_premium end |
#model ⇒ UniqueGiftModel (readonly)
Returns the value of attribute model.
12 13 14 |
# File 'sig/telegram/bot/types/unique_gift.rbs', line 12 def model @model end |
#name ⇒ String (readonly)
Returns the value of attribute name.
10 11 12 |
# File 'sig/telegram/bot/types/unique_gift.rbs', line 10 def name @name end |
#number ⇒ Integer (readonly)
Returns the value of attribute number.
11 12 13 |
# File 'sig/telegram/bot/types/unique_gift.rbs', line 11 def number @number end |
#publisher_chat ⇒ Chat? (readonly)
Returns the value of attribute publisher_chat.
19 20 21 |
# File 'sig/telegram/bot/types/unique_gift.rbs', line 19 def publisher_chat @publisher_chat end |
#symbol ⇒ UniqueGiftSymbol (readonly)
Returns the value of attribute symbol.
13 14 15 |
# File 'sig/telegram/bot/types/unique_gift.rbs', line 13 def symbol @symbol end |
Class Method Details
.new(gift_id:, base_name:, name:, number:, model:, symbol:, backdrop:, is_premium:, is_burned:, is_from_blockchain:, colors:, publisher_chat:) ⇒ instance .new(attributes) ⇒ instance
6 7 |
# File 'sig/telegram/bot/types/unique_gift.rbs', line 6
def self.new: (gift_id: String, base_name: String, name: String, number: Integer, model: UniqueGiftModel, symbol: UniqueGiftSymbol, backdrop: UniqueGiftBackdrop, ?is_premium: true, ?is_burned: true, ?is_from_blockchain: true, ?colors: UniqueGiftColors, ?publisher_chat: Chat) -> instance
| (?Hash[Symbol | String, untyped] attributes) -> instance
|