Class: EchoMsg
- Defined in:
- lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/grpc-1.50.0-x86_64-linux/src/ruby/spec/support/services.rb
Overview
A test message
Instance Attribute Summary collapse
-
#msg ⇒ Object
readonly
Returns the value of attribute msg.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(msg: '') ⇒ EchoMsg
constructor
A new instance of EchoMsg.
Constructor Details
#initialize(msg: '') ⇒ EchoMsg
Returns a new instance of EchoMsg.
22 23 24 |
# File 'lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/grpc-1.50.0-x86_64-linux/src/ruby/spec/support/services.rb', line 22 def initialize(msg: '') @msg = msg end |
Instance Attribute Details
#msg ⇒ Object (readonly)
Returns the value of attribute msg.
20 21 22 |
# File 'lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/grpc-1.50.0-x86_64-linux/src/ruby/spec/support/services.rb', line 20 def msg @msg end |
Class Method Details
.marshal(o) ⇒ Object
26 27 28 |
# File 'lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/grpc-1.50.0-x86_64-linux/src/ruby/spec/support/services.rb', line 26 def self.marshal(o) o.msg end |