Class: Rubirai::PlainMessage

Inherits:
Message
  • Object
show all
Defined in:
lib/rubirai/messages/message.rb

Overview

The plain text message type

Instance Attribute Summary collapse

Attributes inherited from Message

#bot, #type

Class Method Summary collapse

Methods inherited from Message

all_types, check_type, #to_h, to_message

Instance Attribute Details

#textString (readonly)

Returns the text.

Returns:

  • (String)

    the text



313
# File 'lib/rubirai/messages/message.rb', line 313

set_message :Plain, :text

Class Method Details

.from(**kwargs) ⇒ PlainMessage

Returns the message object.

Options Hash (**kwargs):

  • :text (String)

    the plain text

Returns:



313
# File 'lib/rubirai/messages/message.rb', line 313

set_message :Plain, :text