Sha256: 7cdd522cb227c71203dbaa19860784cbbf2cb20600bfa75ff6a944eec17dc798
Contents?: true
Size: 426 Bytes
Versions: 1
Compression:
Stored size: 426 Bytes
Contents
require 'json' require 'cogitate/client/data_to_object_coercer' module Cogitate module Client module ResponseParsers # Responsible for parsing a Cogitate response and just getting the basic data module AgentsWithDetailedIdentifiersExtractor def self.call(response:) JSON.parse(response).fetch('data').map { |datum| DataToObjectCoercer.call(datum) } end end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
cogitate-0.0.2 | lib/cogitate/client/response_parsers/agents_with_detailed_identifiers_extractor.rb |