Class: Telegram::Bot::Types::UniqueGiftSymbol
- Defined in:
- sig/telegram/bot/types/unique_gift_symbol.rbs
Instance Attribute Summary collapse
-
#name ⇒ String
readonly
Returns the value of attribute name.
-
#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_symbol.rbs', line 8 def name @name end |
#rarity_per_mille ⇒ Integer (readonly)
Returns the value of attribute rarity_per_mille.
10 11 12 |
# File 'sig/telegram/bot/types/unique_gift_symbol.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_symbol.rbs', line 9 def sticker @sticker end |
Class Method Details
.new(name:, sticker:, rarity_per_mille:) ⇒ instance .new(attributes) ⇒ instance
6 7 |
# File 'sig/telegram/bot/types/unique_gift_symbol.rbs', line 6
def self.new: (name: String, sticker: Sticker, rarity_per_mille: Integer) -> instance
| (?Hash[Symbol | String, untyped] attributes) -> instance
|