Class: Momento::StaticTransportStrategy

Inherits:
TransportStrategy show all
Defined in:
lib/momento/config/transport/static_transport_strategy.rb

Overview

Predefined transport strategy for communicating with the Momento server

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from TransportStrategy

#initialize

Constructor Details

This class inherits a constructor from Momento::TransportStrategy

Instance Attribute Details

#grpc_configurationObject (readonly)

Returns the value of attribute grpc_configuration.



6
7
8
# File 'lib/momento/config/transport/static_transport_strategy.rb', line 6

def grpc_configuration
  @grpc_configuration
end

Instance Method Details

#with_grpc_configuration(grpc_configuration) ⇒ Object



8
9
10
# File 'lib/momento/config/transport/static_transport_strategy.rb', line 8

def with_grpc_configuration(grpc_configuration)
  return StaticTransportStrategy.new(grpc_configuration)
end