class Fusuma::Plugin::Events::Event
Event
format
Attributes
record[RW]
tag[RW]
time[R]
Public Class Methods
new(tag:, record:, time: Time.now)
click to toggle source
@param time [Time] @param tag [Tag] @param record [String, Record]
Calls superclass method
# File lib/fusuma/plugin/events/event.rb, line 18 def initialize(tag:, record:, time: Time.now) super() @time = time @tag = tag @record = case record when Records::Record record when String Records::TextRecord.new(record) else raise ArgumentError, '@record should be String or Record' end end
Public Instance Methods
inspect()
click to toggle source
# File lib/fusuma/plugin/events/event.rb, line 33 def inspect "time: #{time}, tag: #{tag}, record: #{record}" end