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