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