Class: Telegram::Bot::Types::MaskPosition
- Inherits:
-
Object
- Object
- Telegram::Bot::Types::MaskPosition
- Defined in:
- lib/telegram/bot/types/mask_position.rb
Instance Attribute Summary collapse
-
#point ⇒ Object
Returns the value of attribute point.
-
#scale ⇒ Object
Returns the value of attribute scale.
-
#x_shift ⇒ Object
Returns the value of attribute x_shift.
-
#y_shift ⇒ Object
Returns the value of attribute y_shift.
Instance Method Summary collapse
-
#initialize(attributes) ⇒ MaskPosition
constructor
A new instance of MaskPosition.
Constructor Details
#initialize(attributes) ⇒ MaskPosition
Returns a new instance of MaskPosition.
8 9 10 |
# File 'lib/telegram/bot/types/mask_position.rb', line 8 def initialize(attributes) attributes.each { |k, v| self.send("#{k}=", v) if self.respond_to? k } end |
Instance Attribute Details
#point ⇒ Object
Returns the value of attribute point.
3 4 5 |
# File 'lib/telegram/bot/types/mask_position.rb', line 3 def point @point end |
#scale ⇒ Object
Returns the value of attribute scale.
3 4 5 |
# File 'lib/telegram/bot/types/mask_position.rb', line 3 def scale @scale end |
#x_shift ⇒ Object
Returns the value of attribute x_shift.
3 4 5 |
# File 'lib/telegram/bot/types/mask_position.rb', line 3 def x_shift @x_shift end |
#y_shift ⇒ Object
Returns the value of attribute y_shift.
3 4 5 |
# File 'lib/telegram/bot/types/mask_position.rb', line 3 def y_shift @y_shift end |