Sha256: 1c3d2c8e509e49b11fb151ad506de730941dbf1114a8aefbdf9d6630bb951acc

Contents?: true

Size: 535 Bytes

Versions: 7

Compression:

Stored size: 535 Bytes

Contents

class ProconBypassMan::Processor

  # @param [ProconBypassMan::Domains::InboundProconBinary] binary
  def initialize(binary)
    @binary = binary
  end

  # @param [ProconBypassMan::ExternalInput::ExternalData, NilClass] external_input_data
  # @return [String] 加工後の入力データ
  def process(external_input_data: nil)
    return @binary.raw unless @binary.user_operation_data?

    procon = ProconBypassMan::Procon.new(@binary.raw)
    procon.apply!
    procon.to_binary(external_input_data: external_input_data)
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
procon_bypass_man-0.3.12 lib/procon_bypass_man/processor.rb
procon_bypass_man-0.3.11 lib/procon_bypass_man/processor.rb
procon_bypass_man-0.3.10 lib/procon_bypass_man/processor.rb
procon_bypass_man-0.3.9 lib/procon_bypass_man/processor.rb
procon_bypass_man-0.3.8.1 lib/procon_bypass_man/processor.rb
procon_bypass_man-0.3.8 lib/procon_bypass_man/processor.rb
procon_bypass_man-0.3.7 lib/procon_bypass_man/processor.rb