Class: Telegram::Bot::Types::GiftBackground

Inherits:
Base
  • Object
show all
Defined in:
sig/telegram/bot/types/gift_background.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

#center_colorInteger (readonly)

Returns the value of attribute center_color.

Returns:

  • (Integer)


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

def center_color
  @center_color
end

#edge_colorInteger (readonly)

Returns the value of attribute edge_color.

Returns:

  • (Integer)


9
10
11
# File 'sig/telegram/bot/types/gift_background.rbs', line 9

def edge_color
  @edge_color
end

#text_colorInteger (readonly)

Returns the value of attribute text_color.

Returns:

  • (Integer)


10
11
12
# File 'sig/telegram/bot/types/gift_background.rbs', line 10

def text_color
  @text_color
end

Class Method Details

.new(center_color:, edge_color:, text_color:) ⇒ instance .new(attributes) ⇒ instance

Overloads:

  • .new(center_color:, edge_color:, text_color:) ⇒ instance

    Parameters:

    • center_color: (Integer)
    • edge_color: (Integer)
    • text_color: (Integer)

    Returns:

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

    Parameters:

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

    Returns:

    • (instance)


6
7
# File 'sig/telegram/bot/types/gift_background.rbs', line 6

def self.new: (center_color: Integer, edge_color: Integer, text_color: Integer) -> instance
| (?Hash[Symbol | String, untyped] attributes) -> instance