Class: Resend::Client
Overview
Client class.
Instance Attribute Summary collapse
-
#api_key ⇒ Object
readonly
Returns the value of attribute api_key.
Instance Method Summary collapse
-
#initialize(api_key) ⇒ Client
constructor
A new instance of Client.
Methods included from Emails
Constructor Details
#initialize(api_key) ⇒ Client
Returns a new instance of Client.
15 16 17 18 19 |
# File 'lib/resend/client.rb', line 15 def initialize(api_key) raise ArgumentError, "API Key is not a string" unless api_key.is_a?(String) @api_key = api_key end |
Instance Attribute Details
#api_key ⇒ Object (readonly)
Returns the value of attribute api_key.
13 14 15 |
# File 'lib/resend/client.rb', line 13 def api_key @api_key end |