Class: TraceSignal

Inherits:
Object
  • Object
show all
Defined in:
lib/tracer.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(name:, details:, timestamp:, pid:) ⇒ TraceSignal

Returns a new instance of TraceSignal.



24
25
26
27
28
29
# File 'lib/tracer.rb', line 24

def initialize(name:, details:, timestamp:, pid:)
  @name = name
  @details = details
  @timestamp = timestamp
  @pid = pid
end

Instance Attribute Details

#detailsObject (readonly)

Returns the value of attribute details.



22
23
24
# File 'lib/tracer.rb', line 22

def details
  @details
end

#nameObject (readonly)

Returns the value of attribute name.



22
23
24
# File 'lib/tracer.rb', line 22

def name
  @name
end

#pidObject (readonly)

Returns the value of attribute pid.



22
23
24
# File 'lib/tracer.rb', line 22

def pid
  @pid
end

#timestampObject (readonly)

Returns the value of attribute timestamp.



22
23
24
# File 'lib/tracer.rb', line 22

def timestamp
  @timestamp
end

Instance Method Details

#to_sObject



31
32
33
# File 'lib/tracer.rb', line 31

def to_s
  "#{name} {#{details}}"
end