Class: Telegram::Bot::Types::UniqueGiftBackdrop

Inherits:
Base
  • Object
show all
Defined in:
sig/telegram/bot/types/unique_gift_backdrop.rbs

Instance Attribute Summary collapse

Attributes inherited from Base

#attributes

Class Method Summary collapse

Methods included from Compactable

#to_compact_hash, #to_json

Methods included from PatternMatching

#deconstruct_keys

Instance Attribute Details

#colorsUniqueGiftBackdropColors (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

#nameString (readonly)

Returns the value of attribute name.

Returns:

  • (String)


8
9
10
# File 'sig/telegram/bot/types/unique_gift_backdrop.rbs', line 8

def name
  @name
end

#rarity_per_milleInteger (readonly)

Returns the value of attribute rarity_per_mille.

Returns:

  • (Integer)


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

Overloads:

  • .new(name:, colors:, rarity_per_mille:) ⇒ instance

    Parameters:

    Returns:

    • (instance)
  • .new(attributes) ⇒ instance

    Parameters:

    • attributes (Hash[Symbol | String, untyped])

    Returns:

    • (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