Class: ProtoPharm::GrpcStubAdapter

Inherits:
Object
  • Object
show all
Defined in:
lib/proto_pharm/grpc_stub_adapter.rb,
lib/proto_pharm/grpc_stub_adapter/mock_stub.rb

Defined Under Namespace

Modules: MockStub

Class Method Summary collapse

Class Method Details

.disable!Object



11
12
13
# File 'lib/proto_pharm/grpc_stub_adapter.rb', line 11

def disable!
  @enabled = false
end

.enable!Object



15
16
17
# File 'lib/proto_pharm/grpc_stub_adapter.rb', line 15

def enable!
  @enabled = true
end

.enabled?Boolean

Returns:

  • (Boolean)


19
20
21
# File 'lib/proto_pharm/grpc_stub_adapter.rb', line 19

def enabled?
  @enabled
end