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