module Postmark::Deprecations
Constants
- DEFAULT_BEHAVIORS
Public Class Methods
add_constants(mappings)
click to toggle source
# File lib/postmark/deprecations.rb, line 31 def self.add_constants(mappings) deprecated_constants.merge!(mappings) end
behavior()
click to toggle source
# File lib/postmark/deprecations.rb, line 23 def self.behavior @behavior ||= :log end
behavior=(behavior)
click to toggle source
# File lib/postmark/deprecations.rb, line 27 def self.behavior=(behavior) @behavior = behavior end
deprecated_constants()
click to toggle source
# File lib/postmark/deprecations.rb, line 19 def self.deprecated_constants @deprecated_constants ||= {} end
report(message)
click to toggle source
# File lib/postmark/deprecations.rb, line 15 def self.report(message) DEFAULT_BEHAVIORS.fetch(behavior).call(message) end