Sha256: a10fa1a2857e6b2797879afa91adcaa90ae26ab593c597cde23f6bd29199a4c9
Contents?: true
Size: 446 Bytes
Versions: 1
Compression:
Stored size: 446 Bytes
Contents
require 'cogitate/client/exceptions' module Cogitate module Client # Responsibl module ResponseParsers def self.fetch(name) return name if name.respond_to?(:call) const_get("#{name}Extractor") rescue NameError raise Client::ResponseParserNotFound.new(name, self) end end end end Dir.glob(File.expand_path('../response_parsers/**/*', __FILE__)).each do |filename| require filename end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
cogitate-0.0.2 | lib/cogitate/client/response_parsers.rb |