class Conreality::Event
Represents a Conreality
event.
Constants
- KEY
- TABLE
Attributes
id[R]
The event's sequential identifier.
@return [Integer]
object[R]
The object (i.e., target) of the predicate.
@return [Object]
predicate[R]
The event's predicate (an action or verb).
@return [Symbol]
subject[R]
The subject (i.e., source) of the predicate.
@return [Object]
timestamp[R]
The event'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/event.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 event.
@return [String]
# File lib/conreality/event.rb, line 53 def inspect sprintf("#<%s:%#0x(id: %s)>", self.class.name, self.__id__, @id) end