class Mailgunner::Config
Attributes
api_host[W]
api_key[W]
domain[W]
user_agent[W]
Public Instance Methods
api_host()
click to toggle source
# File lib/mailgunner/config.rb, line 17 def api_host @api_host ||= 'api.mailgun.net' end
api_key()
click to toggle source
# File lib/mailgunner/config.rb, line 11 def api_key @api_key ||= ENV.fetch('MAILGUN_API_KEY') end
domain()
click to toggle source
# File lib/mailgunner/config.rb, line 5 def domain @domain ||= default_domain end
user_agent()
click to toggle source
# File lib/mailgunner/config.rb, line 23 def user_agent @user_agent ||= "Ruby/#{RUBY_VERSION} Mailgunner/#{VERSION}" end
Private Instance Methods
default_domain()
click to toggle source
# File lib/mailgunner/config.rb, line 39 def default_domain return NoDomainProvided unless ENV.key?('MAILGUN_SMTP_LOGIN') ENV['MAILGUN_SMTP_LOGIN'].to_s.split('@').last end