Class: FailingService
- Includes:
- GRPC::GenericService
- Defined in:
- lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/grpc-1.50.0-x86_64-linux/src/ruby/spec/generic/rpc_server_spec.rb
Overview
A test service with an implementation that fails with BadStatus
Instance Attribute Summary collapse
-
#code ⇒ Object
readonly
Returns the value of attribute code.
-
#details ⇒ Object
readonly
Returns the value of attribute details.
-
#md ⇒ Object
readonly
Returns the value of attribute md.
Instance Method Summary collapse
- #an_rpc(_req, _call) ⇒ Object
-
#initialize(_default_var = 'ignored') ⇒ FailingService
constructor
A new instance of FailingService.
Methods included from GRPC::GenericService
Constructor Details
#initialize(_default_var = 'ignored') ⇒ FailingService
Returns a new instance of FailingService.
47 48 49 50 51 |
# File 'lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/grpc-1.50.0-x86_64-linux/src/ruby/spec/generic/rpc_server_spec.rb', line 47 def initialize(_default_var = 'ignored') @details = 'app error' @code = 101 @md = { 'failed_method' => 'an_rpc' } end |
Instance Attribute Details
#code ⇒ Object (readonly)
Returns the value of attribute code.
45 46 47 |
# File 'lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/grpc-1.50.0-x86_64-linux/src/ruby/spec/generic/rpc_server_spec.rb', line 45 def code @code end |
#details ⇒ Object (readonly)
Returns the value of attribute details.
45 46 47 |
# File 'lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/grpc-1.50.0-x86_64-linux/src/ruby/spec/generic/rpc_server_spec.rb', line 45 def details @details end |
#md ⇒ Object (readonly)
Returns the value of attribute md.
45 46 47 |
# File 'lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/grpc-1.50.0-x86_64-linux/src/ruby/spec/generic/rpc_server_spec.rb', line 45 def md @md end |