Class: ProconBypassMan::RumbleBinary
- Inherits:
-
Object
- Object
- ProconBypassMan::RumbleBinary
- Defined in:
- lib/procon_bypass_man/procon/value_objects/rumble_binary.rb
Instance Method Summary collapse
-
#initialize(binary:) ⇒ RumbleBinary
constructor
A new instance of RumbleBinary.
- #noop! ⇒ Object
- #raw ⇒ Object
- #unpack ⇒ Object
Constructor Details
#initialize(binary:) ⇒ RumbleBinary
Returns a new instance of RumbleBinary.
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 |
#raw ⇒ Object
17 18 19 |
# File 'lib/procon_bypass_man/procon/value_objects/rumble_binary.rb', line 17 def raw @binary end |
#unpack ⇒ Object
9 10 11 |
# File 'lib/procon_bypass_man/procon/value_objects/rumble_binary.rb', line 9 def unpack @binary.unpack("H*") end |