Sha256: 9c4a37291e31b218514508b061433d0cf91c4a260ee053c76d88445599ba44fd

Contents?: true

Size: 478 Bytes

Versions: 36

Compression:

Stored size: 478 Bytes

Contents

require "forwardable"
require_relative "plural_resource"

module Clerk
  module Resources
    class Clients
      extend Forwardable

      def initialize(client)
        @client = client
        @resource = PluralResource.new(client, "clients")
      end

      def verify_token(token)
        @client.request(:post, "#{@resource.collection_path}/verify",
                        body: {token: token})
      end

      def_delegators :@resource, :all, :find
    end
  end
end

Version data entries

36 entries across 36 versions & 1 rubygems

Version Path
clerk-sdk-ruby-3.3.0 lib/clerk/resources/clients.rb
clerk-sdk-ruby-3.3.0.beta1 lib/clerk/resources/clients.rb
clerk-sdk-ruby-3.2.0 lib/clerk/resources/clients.rb
clerk-sdk-ruby-4.0.0.beta3 lib/clerk/resources/clients.rb
clerk-sdk-ruby-3.1.0 lib/clerk/resources/clients.rb
clerk-sdk-ruby-3.1.0.rc.1 lib/clerk/resources/clients.rb
clerk-sdk-ruby-4.0.0.beta2 lib/clerk/resources/clients.rb
clerk-sdk-ruby-3.0.0 lib/clerk/resources/clients.rb
clerk-sdk-ruby-2.11.1 lib/clerk/resources/clients.rb
clerk-sdk-ruby-2.11.0 lib/clerk/resources/clients.rb
clerk-sdk-ruby-2.10.0 lib/clerk/resources/clients.rb
clerk-sdk-ruby-2.10.0.beta2 lib/clerk/resources/clients.rb
clerk-sdk-ruby-2.10.0.beta1 lib/clerk/resources/clients.rb
clerk-sdk-ruby-2.9.0 lib/clerk/resources/clients.rb
clerk-sdk-ruby-2.9.0.beta3 lib/clerk/resources/clients.rb
clerk-sdk-ruby-2.9.0.beta2 lib/clerk/resources/clients.rb
clerk-sdk-ruby-2.9.0.beta1 lib/clerk/resources/clients.rb
clerk-sdk-ruby-2.8.0 lib/clerk/resources/clients.rb
clerk-sdk-ruby-2.7.0 lib/clerk/resources/clients.rb
clerk-sdk-ruby-2.6.0 lib/clerk/resources/clients.rb