Class: TraceViz::Models::Message

Inherits:
Object
  • Object
show all
Defined in:
lib/trace_viz/models/message.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#contentObject (readonly)

Returns the value of attribute content.



6
7
8
# File 'lib/trace_viz/models/message.rb', line 6

def content
  @content
end

#fromObject (readonly)

Returns the value of attribute from.



6
7
8
# File 'lib/trace_viz/models/message.rb', line 6

def from
  @from
end

#toObject (readonly)

Returns the value of attribute to.



6
7
8
# File 'lib/trace_viz/models/message.rb', line 6

def to
  @to
end

#typeObject (readonly)

Returns the value of attribute type.



6
7
8
# File 'lib/trace_viz/models/message.rb', line 6

def type
  @type
end