Sha256: 3982795a9e269fd3f3d377716c7da2a3f58a924685dfa9f419d02a47c9c0d1ae

Contents?: true

Size: 457 Bytes

Versions: 1

Compression:

Stored size: 457 Bytes

Contents

# frozen_string_literal: true

module Pennyworth
  module CLI
    module Actions
      # Handles the HTTP statuses action.
      class HTTPStatuses
        include Pennyworth::Import[:kernel]

        def initialize(processor: Processor.for_http_statuses, **)
          super(**)
          @processor = processor
        end

        def call = kernel.puts processor.call.to_json

        private

        attr_reader :processor
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
pennyworth-14.3.0 lib/pennyworth/cli/actions/http_statuses.rb