Class: Voicemeeter::Option::Base

Inherits:
Object
  • Object
show all
Extended by:
MetaFunctions
Includes:
IRemote
Defined in:
lib/voicemeeter/option.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from IRemote

#apply, #to_s

Methods included from Logging

#logger

Constructor Details

#initialize(remote) ⇒ Base

Returns a new instance of Base.



11
12
13
14
15
16
# File 'lib/voicemeeter/option.rb', line 11

def initialize(remote)
  super
  @delay = (0...remote.kind.phys_out).map { OptionDelay.new(remote, _1) }
  @buffer = OptionBuffer.new(remote)
  @mode = OptionMode.new(remote)
end

Instance Attribute Details

#bufferObject (readonly)

Returns the value of attribute buffer.



7
8
9
# File 'lib/voicemeeter/option.rb', line 7

def buffer
  @buffer
end

#delayObject (readonly)

Returns the value of attribute delay.



7
8
9
# File 'lib/voicemeeter/option.rb', line 7

def delay
  @delay
end

#modeObject (readonly)

Returns the value of attribute mode.



7
8
9
# File 'lib/voicemeeter/option.rb', line 7

def mode
  @mode
end

Instance Method Details

#identifierObject



18
19
20
# File 'lib/voicemeeter/option.rb', line 18

def identifier
  :option
end