Sha256: c843f2be855aaaeef9e28495d9f03ea7d14c631c9edcdd9aeb02f65d91fc52c3
Contents?: true
Size: 866 Bytes
Versions: 2
Compression:
Stored size: 866 Bytes
Contents
# frozen_string_literal: true require 'zeitwerk' loader = Zeitwerk::Loader.for_gem loader.setup require 'dry-configurable' require 'dry-initializer' module ApiResponse extend Dry::Configurable setting :adapter, default: :faraday setting :monad, default: false setting :extract_from_body, default: ->(b) { b } setting :struct, default: nil setting :raw_response, default: false setting :error_json, default: false setting :default_return_value, default: nil setting :default_status, default: :conflict setting :symbol_status, default: true setting :default_error_key, default: :external_api_error setting :default_error, default: 'External Api error' setting :success_processor, default: Processor::Success setting :failure_processor, default: Processor::Failure setting :parser, default: Parser setting :options, default: {} end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
api-response-presenter-0.0.2 | lib/api_response.rb |
api-response-presenter-0.0.1 | lib/api_response.rb |