Sha256: 5ed1730def7212c834887fd3772f5741041c224ace4b74101af802595cfb4d72
Contents?: true
Size: 613 Bytes
Versions: 1
Compression:
Stored size: 613 Bytes
Contents
# frozen_string_literal: true # https://upstash.com/docs/qstash/api/dlq/getMessage module Qstash module DLQ class Get include Qstash::Callable attr_reader :headers, :dlq_id def initialize(dlq_id, headers: {}) @dlq_id = dlq_id @headers = headers end def call uri = URI(endpoint) client = Qstash::HttpClient.new(uri) client.get(headers) end private def endpoint [ Qstash.config.url.sub(/\/$/, ""), Endpoints::DLQ_ENDPOINT, dlq_id ].join("/") end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
qstash-rb-0.1.3 | lib/qstash/dlq/get.rb |