Class: TraceSignal
- Inherits:
-
Object
- Object
- TraceSignal
- Defined in:
- lib/tracer.rb
Instance Attribute Summary collapse
-
#details ⇒ Object
readonly
Returns the value of attribute details.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#pid ⇒ Object
readonly
Returns the value of attribute pid.
-
#timestamp ⇒ Object
readonly
Returns the value of attribute timestamp.
Instance Method Summary collapse
-
#initialize(name:, details:, timestamp:, pid:) ⇒ TraceSignal
constructor
A new instance of TraceSignal.
- #to_s ⇒ Object
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 = @pid = pid end |
Instance Attribute Details
#details ⇒ Object (readonly)
Returns the value of attribute details.
22 23 24 |
# File 'lib/tracer.rb', line 22 def details @details end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
22 23 24 |
# File 'lib/tracer.rb', line 22 def name @name end |
#pid ⇒ Object (readonly)
Returns the value of attribute pid.
22 23 24 |
# File 'lib/tracer.rb', line 22 def pid @pid end |
#timestamp ⇒ Object (readonly)
Returns the value of attribute timestamp.
22 23 24 |
# File 'lib/tracer.rb', line 22 def end |
Instance Method Details
#to_s ⇒ Object
31 32 33 |
# File 'lib/tracer.rb', line 31 def to_s "#{name} {#{details}}" end |