Class: EventStoreClient::GRPC::Commands::Streams::Delete
- Defined in:
- lib/event_store_client/adapters/grpc/commands/streams/delete.rb
Instance Method Summary collapse
-
#call(name, options: {}) ⇒ Object
rubocop:disable Lint/UnusedMethodArgument.
Methods inherited from Command
Methods included from Configuration
Instance Method Details
#call(name, options: {}) ⇒ Object
rubocop:disable Lint/UnusedMethodArgument
17 18 19 20 21 22 23 24 25 26 27 28 29 30 |
# File 'lib/event_store_client/adapters/grpc/commands/streams/delete.rb', line 17 def call(name, options: {}) # rubocop:disable Lint/UnusedMethodArgument opts = { stream_identifier: { streamName: name }, any: {} } service.delete(request.new(options: opts), metadata: ) Success() rescue ::GRPC::FailedPrecondition Failure(:not_found) end |