Module: MailRoom::Arbitration

Defined in:
lib/mail_room/arbitration.rb,
lib/mail_room/arbitration/noop.rb,
lib/mail_room/arbitration/redis.rb

Defined Under Namespace

Classes: Noop, Redis

Class Method Summary collapse

Class Method Details

.[](name) ⇒ Object


3
4
5
6
7
8
9
10
11
12
# File 'lib/mail_room/arbitration.rb', line 3

def [](name)
  require_relative("./arbitration/#{name}")

  case name
  when "redis"
    Arbitration::Redis
  else
    Arbitration::Noop
  end
end