Class: Rubirai::SourceMessage

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

Overview

The source message type

Instance Attribute Summary collapse

Attributes inherited from Message

#bot, #type

Method Summary

Methods inherited from Message

AtAllMessage, AtMessage, FaceMessage, PlainMessage, QuoteMessage, all_types, build_from, check_type, get_msg_klass, #initialize, metaclass, set_message, #to_h, to_message

Constructor Details

This class inherits a constructor from Rubirai::Message

Instance Attribute Details

#idInteger (readonly)

Returns the message (chain) id.

Returns:

  • (Integer)

    the message (chain) id



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

set_message :Source, :id, :time

#timeInteger (readonly)

Returns the timestamp.

Returns:

  • (Integer)

    the timestamp



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

set_message :Source, :id, :time