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