Class: EchoMsg

Inherits:
Object
  • Object
show all
Defined in:
src/ruby/spec/support/services.rb

Overview

A test message

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(msg: '') ⇒ EchoMsg

Returns a new instance of EchoMsg.



22
23
24
# File 'src/ruby/spec/support/services.rb', line 22

def initialize(msg: '')
  @msg = msg
end

Instance Attribute Details

#msgObject (readonly)

Returns the value of attribute msg.



20
21
22
# File 'src/ruby/spec/support/services.rb', line 20

def msg
  @msg
end

Class Method Details

.marshal(o) ⇒ Object



26
27
28
# File 'src/ruby/spec/support/services.rb', line 26

def self.marshal(o)
  o.msg
end

.unmarshal(msg) ⇒ Object



30
31
32
# File 'src/ruby/spec/support/services.rb', line 30

def self.unmarshal(msg)
  EchoMsg.new(msg: msg)
end