Sha256: f741d136bcc3a2643a66136e3e8112c7e4f505b17e15d2c89046ca651f4c94d9
Contents?: true
Size: 473 Bytes
Versions: 20
Compression:
Stored size: 473 Bytes
Contents
# frozen_string_literal: true module Totoro class Config def initialize(prefix = nil) @data = Rails.application.config_for(:totoro).with_indifferent_access @data = @data[prefix] if prefix.present? end def reset_data @data = nil end def connect @data[:connect] end def queue(id) name = @data[:queue][id][:name] settings = { durable: @data[:queue][id][:durable] } [name, settings] end end end
Version data entries
20 entries across 20 versions & 1 rubygems