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-0.1.90 vendor/bundle/ruby/3.2.0/gems/resend-0.8.1/lib/resend/client.rb
harbr-0.1.89 vendor/bundle/ruby/3.2.0/gems/resend-0.8.1/lib/resend/client.rb
harbr-0.1.88 vendor/bundle/ruby/3.2.0/gems/resend-0.8.1/lib/resend/client.rb
harbr-0.1.87 vendor/bundle/ruby/3.2.0/gems/resend-0.8.1/lib/resend/client.rb
harbr-0.1.86 vendor/bundle/ruby/3.2.0/gems/resend-0.8.1/lib/resend/client.rb
harbr-0.1.85 vendor/bundle/ruby/3.2.0/gems/resend-0.8.1/lib/resend/client.rb
harbr-0.1.84 vendor/bundle/ruby/3.2.0/gems/resend-0.8.1/lib/resend/client.rb
harbr-0.1.83 vendor/bundle/ruby/3.2.0/gems/resend-0.8.1/lib/resend/client.rb
harbr-0.1.82 vendor/bundle/ruby/3.2.0/gems/resend-0.8.1/lib/resend/client.rb
harbr-0.1.81 vendor/bundle/ruby/3.2.0/gems/resend-0.8.1/lib/resend/client.rb
harbr-0.1.80 vendor/bundle/ruby/3.2.0/gems/resend-0.8.1/lib/resend/client.rb
harbr-0.1.79 vendor/bundle/ruby/3.2.0/gems/resend-0.8.1/lib/resend/client.rb
harbr-0.1.78 vendor/bundle/ruby/3.2.0/gems/resend-0.8.1/lib/resend/client.rb
harbr-0.1.77 vendor/bundle/ruby/3.2.0/gems/resend-0.8.1/lib/resend/client.rb
harbr-0.1.76 vendor/bundle/ruby/3.2.0/gems/resend-0.8.1/lib/resend/client.rb
harbr-0.1.75 vendor/bundle/ruby/3.2.0/gems/resend-0.8.1/lib/resend/client.rb
harbr-0.1.74 vendor/bundle/ruby/3.2.0/gems/resend-0.8.1/lib/resend/client.rb
harbr-0.1.73 vendor/bundle/ruby/3.2.0/gems/resend-0.8.1/lib/resend/client.rb
harbr-0.1.72 vendor/bundle/ruby/3.2.0/gems/resend-0.8.1/lib/resend/client.rb
harbr-0.1.71 vendor/bundle/ruby/3.2.0/gems/resend-0.8.1/lib/resend/client.rb