Module: EventHookClientServer

Defined in:
lib/event_hook_client_server/refinements/protobuf/nullable_values.rb,
lib/event_hook_client_server.rb,
lib/event_hook_client_server/types.rb,
lib/event_hook_client_server/client.rb,
lib/event_hook_client_server/errors.rb,
lib/event_hook_client_server/server.rb,
lib/event_hook_client_server/service.rb,
lib/event_hook_client_server/version.rb,
lib/event_hook_client_server/client/response.rb,
lib/event_hook_client_server/client/models/error.rb,
lib/event_hook_client_server/refinements/hash/bury.rb,
lib/event_hook_client_server/server/request_processor.rb,
lib/event_hook_client_server/client/models/integration.rb,
lib/event_hook_client_server/server/definition_helpers.rb,
lib/event_hook_client_server/refinements/hash/transmute.rb,
lib/event_hook_client_server/services/grpc/struct_encoder.rb,
lib/event_hook_client_server/client/models/integrations/binding.rb,
lib/event_hook_client_server/refinements/object/bubbling_const_lookup.rb,
lib/event_hook_client_server/refinements/protobuf/hashable_struct_values.rb,
lib/event_hook_client_server/protobuf/event_hook_client_server/v1/messages/error_pb.rb,
lib/event_hook_client_server/protobuf/event_hook_client_server/v1/enums/integrator_pb.rb,
lib/event_hook_client_server/protobuf/event_hook_client_server/v1/messages/pagination_pb.rb,
lib/event_hook_client_server/protobuf/event_hook_client_server/v1/messages/integration_pb.rb,
lib/event_hook_client_server/protobuf/event_hook_client_server/v1/services/webhook_configurator_pb.rb,
lib/event_hook_client_server/protobuf/event_hook_client_server/v1/services/webhook_configurator_services_pb.rb

Overview

Makes all Proto3 Value messages (aka. wrappers) act as nullable fields when calling ‘to_h`. The default behaviour will return `nil` if no value was passed and a hash containing a single `:value` key containing the passed value. With this refinement calling `to_h` returns `nil` if no value is passed and the value it self if it’s present. The motivation behind this refinement is the absence of nullable fields in Proto3 and the odd choice of default values - to which the only workaround.

Defined Under Namespace

Modules: Grpc, Refinements, Types, V1 Classes: Client, Error, Server, Service

Constant Summary collapse

MAJOR =
1
MINOR =
3
PATCH =
1
VERSION =
[MAJOR, MINOR, PATCH].join('.')