Class: TraceViz::Models::Participant
- Inherits:
-
Object
- Object
- TraceViz::Models::Participant
- Defined in:
- lib/trace_viz/models/participant.rb
Instance Attribute Summary collapse
-
#alias_name ⇒ Object
Returns the value of attribute alias_name.
-
#name ⇒ Object
Returns the value of attribute name.
Instance Method Summary collapse
- #==(other) ⇒ Object
-
#initialize(name:, alias_name: nil) ⇒ Participant
constructor
A new instance of Participant.
Constructor Details
#initialize(name:, alias_name: nil) ⇒ Participant
Returns a new instance of Participant.
8 9 10 11 |
# File 'lib/trace_viz/models/participant.rb', line 8 def initialize(name:, alias_name: nil) @name = name @alias_name = alias_name end |
Instance Attribute Details
#alias_name ⇒ Object
Returns the value of attribute alias_name.
6 7 8 |
# File 'lib/trace_viz/models/participant.rb', line 6 def alias_name @alias_name end |
#name ⇒ Object
Returns the value of attribute name.
6 7 8 |
# File 'lib/trace_viz/models/participant.rb', line 6 def name @name end |
Instance Method Details
#==(other) ⇒ Object
13 14 15 |
# File 'lib/trace_viz/models/participant.rb', line 13 def ==(other) name == other.name end |