Class: SendgridTemplateEngine::Resources
- Inherits:
-
Object
- Object
- SendgridTemplateEngine::Resources
- Defined in:
- lib/resources.rb
Instance Method Summary collapse
-
#initialize(username, password) ⇒ Resources
constructor
A new instance of Resources.
Constructor Details
#initialize(username, password) ⇒ Resources
Returns a new instance of Resources.
12 13 14 15 16 |
# File 'lib/resources.rb', line 12 def initialize(username, password) raise ArgumentError.new("username should not be nil") if username == nil raise ArgumentError.new("password should not be nil") if password == nil @url_base = "https://#{username}:#{password}@api.sendgrid.com/v3" end |