Class: TraceViz::Models::Message
- Inherits:
-
Object
- Object
- TraceViz::Models::Message
- Defined in:
- lib/trace_viz/models/message.rb
Instance Attribute Summary collapse
-
#content ⇒ Object
readonly
Returns the value of attribute content.
-
#from ⇒ Object
readonly
Returns the value of attribute from.
-
#to ⇒ Object
readonly
Returns the value of attribute to.
-
#type ⇒ Object
readonly
Returns the value of attribute type.
Instance Method Summary collapse
-
#initialize(type:, from:, to:, content:) ⇒ Message
constructor
A new instance of Message.
Constructor Details
#initialize(type:, from:, to:, content:) ⇒ Message
Returns a new instance of Message.
8 9 10 11 12 13 |
# File 'lib/trace_viz/models/message.rb', line 8 def initialize(type:, from:, to:, content:) @type = type @from = from @to = to @content = content end |
Instance Attribute Details
#content ⇒ Object (readonly)
Returns the value of attribute content.
6 7 8 |
# File 'lib/trace_viz/models/message.rb', line 6 def content @content end |
#from ⇒ Object (readonly)
Returns the value of attribute from.
6 7 8 |
# File 'lib/trace_viz/models/message.rb', line 6 def from @from end |
#to ⇒ Object (readonly)
Returns the value of attribute to.
6 7 8 |
# File 'lib/trace_viz/models/message.rb', line 6 def to @to end |
#type ⇒ Object (readonly)
Returns the value of attribute type.
6 7 8 |
# File 'lib/trace_viz/models/message.rb', line 6 def type @type end |