Sha256: 2400d17c2772042ff200373a1e0ca0256c7be00b94793f3fe1b4c7c5fe64528a

Contents?: true

Size: 457 Bytes

Versions: 7

Compression:

Stored size: 457 Bytes

Contents

# frozen_string_literal: true

require "resend/api_keys"
require "resend/domains"
require "resend/emails"
require "resend/batch"
require "resend/audiences"
require "resend/contacts"
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

7 entries across 7 versions & 1 rubygems

Version Path
resend-0.15.0 lib/resend/client.rb
resend-0.14.0 lib/resend/client.rb
resend-0.13.0 lib/resend/client.rb
resend-0.12.0 lib/resend/client.rb
resend-0.11.0 lib/resend/client.rb
resend-0.10.0 lib/resend/client.rb
resend-0.9.0 lib/resend/client.rb