module LetterSaver

Constants

VERSION

Public Class Methods

config() click to toggle source
# File lib/letter_saver.rb, line 10
def self.config
  @config ||= Config.new.tap do |config|
    config.api_token = ''
    config.host = ENV.fetch('LETTER_SAVER_HOST', 'letter_opener.com')
  end
end
configure() { |config| ... } click to toggle source
# File lib/letter_saver.rb, line 17
def self.configure
  yield config if block_given?
end