Class: Voicemeeter::Remote::RequestRemote

Inherits:
Object
  • Object
show all
Defined in:
lib/voicemeeter/remote.rb

Overview

Factory class for Remote. Returns a Remote class of a kind.

Class Method Summary collapse

Class Method Details

.for(kind) ⇒ Object



80
81
82
83
84
85
86
87
88
89
# File 'lib/voicemeeter/remote.rb', line 80

def self.for(kind, **)
  case kind.name
  when :basic
    RemoteBasic.new(kind, **)
  when :banana
    RemoteBanana.new(kind, **)
  when :potato
    RemotePotato.new(kind, **)
  end
end