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