Sha256: 89043ac89f7cb5dd11d4eb98ff31f878dabf33c6ca6d90102f28661c6e95febb
Contents?: true
Size: 317 Bytes
Versions: 1
Compression:
Stored size: 317 Bytes
Contents
# frozen_string_literal: true module Easyship module Handlers # Handles the response body class ResponseBodyHandler def self.handle_response(response) body = response.body JSON.parse(body, symbolize_names: true) rescue JSON::ParserError nil end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
easyship-0.1.4 | lib/easyship/handlers/response_body_handler.rb |