Module: ConvenientService::Common::Plugins::CanHaveUserProvidedEntity Private

Defined in:
lib/convenient_service/common/plugins/can_have_user_provided_entity.rb,
lib/convenient_service/common/plugins/can_have_user_provided_entity/exceptions.rb,
lib/convenient_service/common/plugins/can_have_user_provided_entity/commands/find_or_create_entity.rb

Overview

This module is part of a private API. You should avoid using this module if possible, as it may be removed or be changed in the future.

Since:

  • 1.0.0

Defined Under Namespace

Modules: Commands, Exceptions

Class Method Summary collapse

Class Method Details

.find_or_create_entity(namespace, proto_entity) ⇒ Object

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Since:

  • 1.0.0



16
17
18
# File 'lib/convenient_service/common/plugins/can_have_user_provided_entity.rb', line 16

def find_or_create_entity(namespace, proto_entity)
  Commands::FindOrCreateEntity[namespace: namespace, proto_entity: proto_entity]
end