lib/ika3/response.rb in ika3-0.4.0 vs lib/ika3/response.rb in ika3-0.4.1

- old
+ new

@@ -1,5 +1,7 @@ +# frozen_string_literal: true + module Ika3 class Response def initialize(faraday_response) @raw_body = faraday_response.body @raw_headers = faraday_response.headers @@ -10,10 +12,10 @@ @raw_body end def headers @headers ||= @raw_headers.inject({}) do |result, (key, value)| - result.merge(key.split("-").map(&:capitalize).join("-") => value) + result.merge(key.split('-').map(&:capitalize).join('-') => value) end end def status @raw_status