class EventStoreClient::GRPC::Commands::Streams::Delete

Public Instance Methods

call(name, options: {}) click to toggle source
# 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: metadata)
  Success()
rescue ::GRPC::FailedPrecondition
  Failure(:not_found)
end