Class: Pact::V2::Provider::PactConfig::Grpc
- Defined in:
- lib/pact/v2/provider/pact_config/grpc.rb
Instance Attribute Summary collapse
-
#grpc_port ⇒ Object
readonly
Returns the value of attribute grpc_port.
-
#grpc_server ⇒ Object
readonly
Returns the value of attribute grpc_server.
-
#grpc_services ⇒ Object
readonly
Returns the value of attribute grpc_services.
Attributes inherited from Base
#broker_password, #broker_token, #broker_url, #broker_username, #consumer_branch, #consumer_name, #consumer_version, #consumer_version_selectors, #consumer_version_tags, #enable_pending, #fail_if_no_pacts_found, #include_wip_pacts_since, #log_level, #logger, #pact_dir, #pact_proxy_port, #pact_uri, #provider_build_uri, #provider_name, #provider_setup_port, #provider_setup_server, #provider_version, #provider_version_branch, #provider_version_tags, #publish_verification_results, #verify_only
Instance Method Summary collapse
-
#initialize(provider_name:, opts: {}) ⇒ Grpc
constructor
A new instance of Grpc.
- #new_verifier(config = nil) ⇒ Object
Methods inherited from Base
#after_teardown, #before_setup, #message_setup_url, #new_provider_state, #pact_broker_proxy_url, #provider_setup_url, #start_servers, #stop_servers
Constructor Details
#initialize(provider_name:, opts: {}) ⇒ Grpc
Returns a new instance of Grpc.
12 13 14 15 16 17 |
# File 'lib/pact/v2/provider/pact_config/grpc.rb', line 12 def initialize(provider_name:, opts: {}) super @grpc_port = opts[:grpc_port] || 0 @grpc_services = opts[:grpc_services] || [] end |
Instance Attribute Details
#grpc_port ⇒ Object (readonly)
Returns the value of attribute grpc_port.
10 11 12 |
# File 'lib/pact/v2/provider/pact_config/grpc.rb', line 10 def grpc_port @grpc_port end |
#grpc_server ⇒ Object (readonly)
Returns the value of attribute grpc_server.
10 11 12 |
# File 'lib/pact/v2/provider/pact_config/grpc.rb', line 10 def grpc_server @grpc_server end |
#grpc_services ⇒ Object (readonly)
Returns the value of attribute grpc_services.
10 11 12 |
# File 'lib/pact/v2/provider/pact_config/grpc.rb', line 10 def grpc_services @grpc_services end |
Instance Method Details
#new_verifier(config = nil) ⇒ Object
19 20 21 |
# File 'lib/pact/v2/provider/pact_config/grpc.rb', line 19 def new_verifier(config = nil) GrpcVerifier.new(self, config) end |