Class: ProconBypassMan::Domains::InboundProconBinary
- Inherits:
-
Binary::Base
- Object
- Binary::Base
- ProconBypassMan::Domains::InboundProconBinary
- Includes:
- HasImmutableBinary
- Defined in:
- lib/procon_bypass_man/procon/value_objects/binary/inbound_procon_binary.rb
Overview
proconから取得したばかりのバイナリ
Instance Method Summary collapse
Methods included from HasImmutableBinary
Methods inherited from Binary::Base
#binary, #initialize, #raw, #to_procon_reader, #unpack
Constructor Details
This class inherits a constructor from ProconBypassMan::Domains::Binary::Base
Instance Method Details
#rumble_data? ⇒ Boolean
13 14 15 |
# File 'lib/procon_bypass_man/procon/value_objects/binary/inbound_procon_binary.rb', line 13 def rumble_data? binary[0] == "\x10".b end |
#user_operation_data? ⇒ Boolean
8 9 10 |
# File 'lib/procon_bypass_man/procon/value_objects/binary/inbound_procon_binary.rb', line 8 def user_operation_data? binary[0] == "\x30".b end |