module SmtpLw::Default
Constants
- API_BASE
- API_VERSION
Public Class Methods
api_base()
click to toggle source
# File lib/smtp_lw/default.rb, line 19 def api_base ENV['SMTP_LW_API_BASE'] || API_BASE end
api_endpoint()
click to toggle source
# File lib/smtp_lw/default.rb, line 7 def api_endpoint ENV['SMTP_LW_API_ENDPOINT'] || (API_BASE + API_VERSION) end
api_token()
click to toggle source
# File lib/smtp_lw/default.rb, line 11 def api_token ENV['SMTP_LW_API_TOKEN'] end
api_version()
click to toggle source
# File lib/smtp_lw/default.rb, line 15 def api_version API_VERSION end
options()
click to toggle source
# File lib/smtp_lw/default.rb, line 23 def options Hash[SmtpLw::Configurable.keys.map { |key| [key, send(key)] }] end
per_page()
click to toggle source
used for pagination when available on get
# File lib/smtp_lw/default.rb, line 28 def per_page ENV['SMTP_LW_PER_PAGE'] || 100 end
timeout()
click to toggle source
# File lib/smtp_lw/default.rb, line 32 def timeout ENV['SMTP_LW_TIMEOUT'] || 5 end