module Reelagram::Mail
Attributes
configuration[RW]
Public Class Methods
configure() { |configuration| ... }
click to toggle source
# File lib/reelagram/mail.rb, line 14 def self.configure self.configuration ||= Configuration.new yield(configuration) configured? end
configured?()
click to toggle source
# File lib/reelagram/mail.rb, line 20 def self.configured? return false if configuration.nil? configuration.configured? end
debug?()
click to toggle source
# File lib/reelagram/mail.rb, line 31 def self.debug? false unless configured? configuration.debug end
process_shipping_emails()
click to toggle source
# File lib/reelagram/mail.rb, line 25 def self.process_shipping_emails emails = Fetchers::ShippingFetcher.new.fetch parser = Parsers::ShippingParser.new Processors::ShippingProcessor.new(emails, parser).run end