class Gapic::Config::Method
config.rpc_method.timeout = 120
config.timeout = 60
config = ServiceConfig.new
end
end
yield self if block_given?
@rpc_method = Gapic::Config::Method.new
@parent_config = parent_config unless parent_config.nil?
def initialize parent_config = nil
attr_reader :rpc_method
config_attr :metadata, nil, Hash, nil
config_attr :timeout, nil, Numeric, nil
config_attr :port, 443, Integer
config_attr :host, “localhost”, String
extend Gapic::Config
class ServiceConfig
require “gapic/config”
@example
Config::Method is a configuration class that represents the configuration for an API RPC call.
#
def initialize parent_method = nil
-
parent_method
(Gapic::Config::Method, nil
) -- The config to look to values for.
def initialize parent_method = nil @parent_config = parent_method unless parent_method.nil? yield self if block_given? end