Sha256: dbf64d2cba7c3eb9f37e268be2e370b58d715c57631cf988a2f5535c6d746511
Contents?: true
Size: 336 Bytes
Versions: 2
Compression:
Stored size: 336 Bytes
Contents
# frozen_string_literal: true module CottonTail # Configuration options class Configuration attr_reader :connection_args def initialize @connection_args = nil end def connection_args=(*args, **kwargs) url, = args @connection_args = url ? Bunny::Session.parse_uri(url) : kwargs end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
cotton-tail-0.2.1 | lib/cotton_tail/configuration.rb |
cotton-tail-0.2.0 | lib/cotton_tail/configuration.rb |