Class: Rubychy::DataTypes::Typing
- Inherits:
-
SentMessage
- Object
- Base
- Message
- SentMessage
- Rubychy::DataTypes::Typing
- Defined in:
- lib/rubychy/data_types/typing.rb
Instance Method Summary collapse
-
#initialize(*params) ⇒ Typing
constructor
A new instance of Typing.
- #validations ⇒ Object
Constructor Details
#initialize(*params) ⇒ Typing
Returns a new instance of Typing.
6 7 8 9 |
# File 'lib/rubychy/data_types/typing.rb', line 6 def initialize *params super(*params) @type = 'is-typing' end |
Instance Method Details
#validations ⇒ Object
11 12 13 14 15 16 17 18 |
# File 'lib/rubychy/data_types/typing.rb', line 11 def validations { isTyping: { required: true, class: [Boolean] }, to: { required: true, class: [String] }, type: { required: true, class: [String] }, chatId: { required: true, class: [String] }, } end |