module SmtpLw::Configurable
Attributes
api_endpoint[RW]
api_token[RW]
per_page[RW]
timeout[RW]
Public Class Methods
keys()
click to toggle source
# File lib/smtp_lw/configurable.rb, line 6 def keys @keys ||= [ :api_token, :api_endpoint, :per_page, :timeout ] end
Public Instance Methods
configure() { |self| ... }
click to toggle source
Set configuration options using a block
# File lib/smtp_lw/configurable.rb, line 36 def configure yield self end
reset!()
click to toggle source
# File lib/smtp_lw/configurable.rb, line 40 def reset! SmtpLw::Configurable.keys.each do |key| instance_variable_set(:"@#{key}", SmtpLw::Default.options[key]) end self end