Class: Telegram::Bot::Types::StoryAreaPosition

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

#corner_radius_percentageFloat (readonly)

Returns the value of attribute corner_radius_percentage.

Returns:

  • (Float)


13
14
15
# File 'sig/telegram/bot/types/story_area_position.rbs', line 13

def corner_radius_percentage
  @corner_radius_percentage
end

#height_percentageFloat (readonly)

Returns the value of attribute height_percentage.

Returns:

  • (Float)


11
12
13
# File 'sig/telegram/bot/types/story_area_position.rbs', line 11

def height_percentage
  @height_percentage
end

#rotation_angleFloat (readonly)

Returns the value of attribute rotation_angle.

Returns:

  • (Float)


12
13
14
# File 'sig/telegram/bot/types/story_area_position.rbs', line 12

def rotation_angle
  @rotation_angle
end

#width_percentageFloat (readonly)

Returns the value of attribute width_percentage.

Returns:

  • (Float)


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

def width_percentage
  @width_percentage
end

#x_percentageFloat (readonly)

Returns the value of attribute x_percentage.

Returns:

  • (Float)


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

def x_percentage
  @x_percentage
end

#y_percentageFloat (readonly)

Returns the value of attribute y_percentage.

Returns:

  • (Float)


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

Overloads:

  • .new(x_percentage:, y_percentage:, width_percentage:, height_percentage:, rotation_angle:, corner_radius_percentage:) ⇒ instance

    Parameters:

    • x_percentage: (Float)
    • y_percentage: (Float)
    • width_percentage: (Float)
    • height_percentage: (Float)
    • rotation_angle: (Float)
    • corner_radius_percentage: (Float)

    Returns:

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

    Parameters:

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

    Returns:

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