Sha256: 547b687bdb1f856d9255191da450ee04698adcf360d29f2c707220f3fdd56d89

Contents?: true

Size: 378 Bytes

Versions: 18

Compression:

Stored size: 378 Bytes

Contents

module ProconBypassMan::ProconDisplay
  class ServerApp
    def initialize(env)
      @env = env
    end

    def call
      case @env["PATH"]
      when "/input"
        response = ProconBypassMan::ProconDisplay::Status.instance.current
        HttpResponse.new(response, status: 200).to_s
      else
        HttpResponse.new(nil, status: 404).to_s
      end
    end
  end
end

Version data entries

18 entries across 18 versions & 1 rubygems

Version Path
procon_bypass_man-0.3.12 lib/procon_bypass_man/procon_display/server_app.rb
procon_bypass_man-0.3.11 lib/procon_bypass_man/procon_display/server_app.rb
procon_bypass_man-0.3.10 lib/procon_bypass_man/procon_display/server_app.rb
procon_bypass_man-0.3.9 lib/procon_bypass_man/procon_display/server_app.rb
procon_bypass_man-0.3.8.1 lib/procon_bypass_man/procon_display/server_app.rb
procon_bypass_man-0.3.8 lib/procon_bypass_man/procon_display/server_app.rb
procon_bypass_man-0.3.7 lib/procon_bypass_man/procon_display/server_app.rb
procon_bypass_man-0.3.6 lib/procon_bypass_man/procon_display/server_app.rb
procon_bypass_man-0.3.5 lib/procon_bypass_man/procon_display/server_app.rb
procon_bypass_man-0.3.4 lib/procon_bypass_man/procon_display/server_app.rb
procon_bypass_man-0.3.3.1 lib/procon_bypass_man/procon_display/server_app.rb
procon_bypass_man-0.3.3 lib/procon_bypass_man/procon_display/server_app.rb
procon_bypass_man-0.3.2 lib/procon_bypass_man/procon_display/server_app.rb
procon_bypass_man-0.3.1 lib/procon_bypass_man/procon_display/server_app.rb
procon_bypass_man-0.3.0 lib/procon_bypass_man/procon_display/server_app.rb
procon_bypass_man-0.2.3 lib/procon_bypass_man/procon_display/server_app.rb
procon_bypass_man-0.2.2 lib/procon_bypass_man/procon_display/server_app.rb
procon_bypass_man-0.2.1 lib/procon_bypass_man/procon_display/server_app.rb