Class: ProconBypassMan::SuppressRumble
- Inherits:
-
Object
- Object
- ProconBypassMan::SuppressRumble
- Defined in:
- lib/procon_bypass_man/procon/suppress_rumble.rb
Instance Method Summary collapse
- #execute ⇒ String
-
#initialize(binary:) ⇒ SuppressRumble
constructor
A new instance of SuppressRumble.
Constructor Details
#initialize(binary:) ⇒ SuppressRumble
Returns a new instance of SuppressRumble.
5 6 7 |
# File 'lib/procon_bypass_man/procon/suppress_rumble.rb', line 5 def initialize(binary: ) @binary = binary end |
Instance Method Details
#execute ⇒ 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 |