Class: Connect::UnaryResponse
- Inherits:
-
Object
- Object
- Connect::UnaryResponse
- Defined in:
- lib/connect/unary_response.rb
Instance Attribute Summary collapse
-
#header ⇒ Object
readonly
Returns the value of attribute header.
-
#message ⇒ Object
readonly
Returns the value of attribute message.
-
#trailer ⇒ Object
readonly
Returns the value of attribute trailer.
Instance Method Summary collapse
-
#initialize(header:, message:, trailer:) ⇒ UnaryResponse
constructor
A new instance of UnaryResponse.
Constructor Details
#initialize(header:, message:, trailer:) ⇒ UnaryResponse
Returns a new instance of UnaryResponse.
7 8 9 10 11 |
# File 'lib/connect/unary_response.rb', line 7 def initialize(header:, message:, trailer:) @header = header @message = @trailer = trailer end |
Instance Attribute Details
#header ⇒ Object (readonly)
Returns the value of attribute header.
5 6 7 |
# File 'lib/connect/unary_response.rb', line 5 def header @header end |
#message ⇒ Object (readonly)
Returns the value of attribute message.
5 6 7 |
# File 'lib/connect/unary_response.rb', line 5 def @message end |
#trailer ⇒ Object (readonly)
Returns the value of attribute trailer.
5 6 7 |
# File 'lib/connect/unary_response.rb', line 5 def trailer @trailer end |