class DefraRubyEmail::Configuration

Attributes

notify_api_key[RW]

Public Class Methods

new() click to toggle source
# File lib/defra_ruby_email/configuration.rb, line 8
def initialize
  @enable = false
end

Public Instance Methods

enable=(arg) click to toggle source

Controls whether the mocks are enabled. Only if set to true will the mock pages be accessible

# File lib/defra_ruby_email/configuration.rb, line 14
def enable=(arg)
  # We implement our own setter to handle values being passed in as strings
  # rather than booleans
  parsed = arg.to_s.downcase

  @enable = parsed == "true"
end
enabled?() click to toggle source
# File lib/defra_ruby_email/configuration.rb, line 22
def enabled?
  @enable
end