Class: Rubirai::JsonMessage

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

Overview

The json 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

#jsonString (readonly)

Returns the json content.

Returns:

  • (String)

    the json content



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

set_message :Json, :json

Class Method Details

.from(**kwargs) ⇒ Rubirai::JsonMessage

Options Hash (**kwargs):

  • :json (String)

    the json body

Returns:



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

set_message :Json, :json