lib/peddler/content.rb in peddler-2.1.1 vs lib/peddler/content.rb in peddler-2.3.0
- old
+ new
@@ -1,13 +1,13 @@
# frozen_string_literal: true
module Peddler
# Parses content metadata provided in the headers of a response
class Content
- # @api private
+ # @!visibility private
attr_reader :headers
- # @api private
+ # @!visibility private
def initialize(headers)
@headers = headers.select { |key| key.start_with?('Content') }
end
# The size of the response body in bytes