Sha256: 1eccb62a5e82165ab76dd645c175cb5d24c7ee5f1ab0213a4ea91f339932bd95
Contents?: true
Size: 571 Bytes
Versions: 1
Compression:
Stored size: 571 Bytes
Contents
# frozen_string_literal: true # https://upstash.com/docs/qstash/api/signingKeys/get module Qstash module SigningKeys class Get include Qstash::Callable attr_reader :headers def initialize(headers: {}) @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::SIGNING_KEYS_ENDPOINT ].join("/") end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
qstash-rb-0.1.3 | lib/qstash/signing_keys/get.rb |