Class: Telegram::Bot::Types::MaskPosition

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

#pointString (readonly)

Returns the value of attribute point.

Returns:

  • (String)


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

def point
  @point
end

#scaleFloat (readonly)

Returns the value of attribute scale.

Returns:

  • (Float)


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

def scale
  @scale
end

#x_shiftFloat (readonly)

Returns the value of attribute x_shift.

Returns:

  • (Float)


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

def x_shift
  @x_shift
end

#y_shiftFloat (readonly)

Returns the value of attribute y_shift.

Returns:

  • (Float)


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

def y_shift
  @y_shift
end

Class Method Details

.new(point:, x_shift:, y_shift:, scale:) ⇒ instance .new(attributes) ⇒ instance

Overloads:

  • .new(point:, x_shift:, y_shift:, scale:) ⇒ instance

    Parameters:

    • point: (String)
    • x_shift: (Float)
    • y_shift: (Float)
    • scale: (Float)

    Returns:

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

    Parameters:

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

    Returns:

    • (instance)


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

def self.new: (point: String, x_shift: Float, y_shift: Float, scale: Float) -> instance
| (?Hash[Symbol | String, untyped] attributes) -> instance