class Conreality::Message
Represents a Conreality
message.
Constants
- KEY
- TABLE
Attributes
audio[R]
The message's contents as audio.
@return [Binary]
id[R]
The message's sequential identifier.
@return [Integer]
sender[R]
The sender of the message.
@return [Player, Asset]
text[R]
The message's contents as text.
@return [String]
timestamp[R]
The message's timestamp (in Zulu time).
@return [Time]
Public Class Methods
new(session, id)
click to toggle source
@param session [Session] @param id [#to_i]
# File lib/conreality/message.rb, line 45 def initialize(session, id) @session, @id = session, id.to_i end
Public Instance Methods
inspect()
click to toggle source
Returns a developer-friendly representation of this message.
@return [String]
# File lib/conreality/message.rb, line 53 def inspect sprintf("#<%s:%#0x(id: %s)>", self.class.name, self.__id__, @id) end