Sha256: de35fb92fcd3cc340c1a4c6e9ad9b0b143149f58a8ce8a78fa4e368ffc2d28c6

Contents?: true

Size: 404 Bytes

Versions: 74

Compression:

Stored size: 404 Bytes

Contents

# frozen_string_literal: true

require "resend/api_keys"
require "resend/domains"
require "resend/emails"
require "resend/batch"
require "httparty"

module Resend
  # Client class.
  class Client
    include Resend::Emails

    attr_reader :api_key

    def initialize(api_key)
      raise ArgumentError, "API Key is not a string" unless api_key.is_a?(String)

      @api_key = api_key
    end
  end
end

Version data entries

74 entries across 74 versions & 2 rubygems

Version Path
harbr-2.8.1 vendor/bundle/ruby/3.2.0/gems/resend-0.8.1/lib/resend/client.rb
harbr-0.2.10 vendor/bundle/ruby/3.2.0/gems/resend-0.8.1/lib/resend/client.rb
harbr-0.2.9 vendor/bundle/ruby/3.2.0/gems/resend-0.8.1/lib/resend/client.rb
harbr-0.2.8 vendor/bundle/ruby/3.2.0/gems/resend-0.8.1/lib/resend/client.rb
harbr-0.2.7 vendor/bundle/ruby/3.2.0/gems/resend-0.8.1/lib/resend/client.rb
harbr-0.2.6 vendor/bundle/ruby/3.2.0/gems/resend-0.8.1/lib/resend/client.rb
harbr-0.2.5 vendor/bundle/ruby/3.2.0/gems/resend-0.8.1/lib/resend/client.rb
harbr-0.2.4 vendor/bundle/ruby/3.2.0/gems/resend-0.8.1/lib/resend/client.rb
harbr-0.2.3 vendor/bundle/ruby/3.2.0/gems/resend-0.8.1/lib/resend/client.rb
harbr-0.2.2 vendor/bundle/ruby/3.2.0/gems/resend-0.8.1/lib/resend/client.rb
harbr-0.2.1 vendor/bundle/ruby/3.2.0/gems/resend-0.8.1/lib/resend/client.rb
harbr-0.2.0 vendor/bundle/ruby/3.2.0/gems/resend-0.8.1/lib/resend/client.rb
harbr-0.1.99 vendor/bundle/ruby/3.2.0/gems/resend-0.8.1/lib/resend/client.rb
harbr-0.1.98 vendor/bundle/ruby/3.2.0/gems/resend-0.8.1/lib/resend/client.rb
harbr-0.1.97 vendor/bundle/ruby/3.2.0/gems/resend-0.8.1/lib/resend/client.rb
harbr-0.1.96 vendor/bundle/ruby/3.2.0/gems/resend-0.8.1/lib/resend/client.rb
harbr-0.1.95 vendor/bundle/ruby/3.2.0/gems/resend-0.8.1/lib/resend/client.rb
harbr-0.1.94 vendor/bundle/ruby/3.2.0/gems/resend-0.8.1/lib/resend/client.rb
harbr-0.1.93 vendor/bundle/ruby/3.2.0/gems/resend-0.8.1/lib/resend/client.rb
harbr-0.1.91 vendor/bundle/ruby/3.2.0/gems/resend-0.8.1/lib/resend/client.rb