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