Sha256: c395ef69fdc05ac90353228c8695d10b3f0717311436df2d6cd0a6158e9907b5

Contents?: true

Size: 301 Bytes

Versions: 1

Compression:

Stored size: 301 Bytes

Contents

# frozen_string_literal: true
module Aitch
  module ResponseParser
    module JSONParser
      def self.type
        :json
      end

      def self.match?(content_type)
        content_type =~ /json/
      end

      def self.load(source)
        ::JSON.load(source.to_s)
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
aitch-1.0.0 lib/aitch/response_parser/json_parser.rb