class Rutema::Message
Represents the data beeing shunted between the components in lieu of logging.
This is the primary type passed to the event reporters
Attributes
test[RW]
text[RW]
timestamp[RW]
Public Class Methods
new(params)
click to toggle source
Keys used:
test - the test id/name text - the text of the message timestamp
# File lib/rutema/core/framework.rb, line 11 def initialize params @test=params.fetch(:test,"") @test||="" @text=params.fetch(:text,"") @timestamp=params.fetch(:timestamp,Time.now) end
Public Instance Methods
to_s()
click to toggle source
# File lib/rutema/core/framework.rb, line 18 def to_s msg="" msg<<"#{@test} " unless @test.empty? msg<<@text return msg end