Class: ProconBypassMan::RumbleBinary

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

Instance Method Summary collapse

Constructor Details

#initialize(binary:) ⇒ RumbleBinary

Returns a new instance of RumbleBinary.

Parameters:

  • binary (String)


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

def initialize(binary: )
  @binary = binary
end

Instance Method Details

#noop!Object



13
14
15
# File 'lib/procon_bypass_man/procon/value_objects/rumble_binary.rb', line 13

def noop!
  @binary = ProconBypassMan::SuppressRumble.new(binary: @binary).execute
end

#rawObject



17
18
19
# File 'lib/procon_bypass_man/procon/value_objects/rumble_binary.rb', line 17

def raw
  @binary
end

#unpackObject



9
10
11
# File 'lib/procon_bypass_man/procon/value_objects/rumble_binary.rb', line 9

def unpack
  @binary.unpack("H*")
end