Class: ProconBypassMan::SuppressRumble

Inherits:
Object
  • Object
show all
Defined in:
lib/procon_bypass_man/procon/suppress_rumble.rb

Instance Method Summary collapse

Constructor Details

#initialize(binary:) ⇒ SuppressRumble

Returns a new instance of SuppressRumble.

Parameters:

  • binary (String)


5
6
7
# File 'lib/procon_bypass_man/procon/suppress_rumble.rb', line 5

def initialize(binary: )
  @binary = binary
end

Instance Method Details

#executeString

Returns:

  • (String)


10
11
12
13
14
# File 'lib/procon_bypass_man/procon/suppress_rumble.rb', line 10

def execute
  new_raw = ["100c0001404000014040"].pack("H*")
  new_raw[1] = @binary[1]
  new_raw
end