class AppMail::Config
Attributes
host[W]
server_key[W]
Public Instance Methods
host()
click to toggle source
# File lib/app_mail/config.rb, line 4 def host @host || ENV['APPMAIL_HOST'] || 'api.appmail.io' end
server_key()
click to toggle source
# File lib/app_mail/config.rb, line 9 def server_key @server_key || ENV['APPMAIL_KEY'] || raise(Error, "Server key has not been configured. Set it using the `AppMail.configure` block or use `APPMAIL_KEY` environment variable.") end