Sha256: 4aa4369c3439a51ae047900b071b7077041837fb4fc3e1afee03347d57d288ca
Contents?: true
Size: 519 Bytes
Versions: 9
Compression:
Stored size: 519 Bytes
Contents
# frozen_string_literal: true module Pennyworth module CLI module Actions # Handles the HTTP statuses action. class HTTPStatuses def initialize processor: Processor.for_http_statuses, container: Container @processor = processor @container = container end def call = processor.call.to_json.then { |json| logger.info json } private attr_reader :processor, :container def logger = container[__method__] end end end end
Version data entries
9 entries across 9 versions & 1 rubygems