Class: Rubychy::DataTypes::Typing

Inherits:
SentMessage show all
Defined in:
lib/rubychy/data_types/typing.rb

Instance Method Summary collapse

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

#validationsObject



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