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

Class Method Summary collapse

Methods inherited from Message

all_types, check_type, #to_h, to_message

Instance Attribute Details

#idInteger (readonly)

Returns the message (chain) id.

Returns:

  • (Integer)

    the message (chain) id



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

set_message :Source, :id, :time

#timeInteger (readonly)

Returns the timestamp.

Returns:

  • (Integer)

    the timestamp



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

set_message :Source, :id, :time

Class Method Details

.from(**kwargs) ⇒ Object

Options Hash (**kwargs):

  • :id (Integer)

    the id

  • :time (Integer)

    the timestamp



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

set_message :Source, :id, :time