Sha256: aa99cff8bea53fdbf12fea1780272b6f7f39a8127457d3c3c40f3314a93f7dcb
Contents?: true
Size: 539 Bytes
Versions: 2
Compression:
Stored size: 539 Bytes
Contents
# frozen_string_literal: true require "yaml" module Qravan # Sources for data extractions class class Source attr_accessor :sources def initialize(cargo = {}) @sources ||= cargo.sources end def call(env) body = [unpassworded.to_json] status = 200 headers = { "content-type" => "application/json" } [status, headers, body] end def unpassworded sources.map { |key, value| sources[key]["password"] = "******" if sources[key]["password"] } sources end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
qravan-0.1.1 | lib/qravan/source.rb |
qravan-0.1.0 | lib/qravan/source.rb |