# File lib/core/terminus.rb, line 226 def apply(opts=nil) return unless opts if opts.is_a? String # Shorthand for address self.address = opts else opts.each_pair do |k,v| case k when :address then self.address = v when :dynamic then self.dynamic = !!v when :distribution_mode then self.distribution_mode = v when :durability_mode then self.durability_mode = v when :timeout then self.timeout = v when :expiry_policy then self.expiry_policy = v when :filter then self.filter = v when :capabilities then self.capabilities = v end end end end