Sha256: b0c04e617e9c8e456b1a654947f2655387a7591b4d228e5e1a1b9677463e6a38
Contents?: true
Size: 505 Bytes
Versions: 13
Compression:
Stored size: 505 Bytes
Contents
# frozen_string_literal: true module Pennyworth module CLI module Actions # Handles the HTTP statuses action. class HTTPStatuses include Pennyworth::Import[:logger] def initialize processor: Processor.for_http_statuses, **dependencies super(**dependencies) @processor = processor end def call = processor.call.to_json.then { |json| logger.info { json } } private attr_reader :processor end end end end
Version data entries
13 entries across 13 versions & 1 rubygems