Method: Ciql::Configuration#to_options

Defined in:
lib/ciql/configuration.rb

#to_optionsObject



24
25
26
27
28
29
# File 'lib/ciql/configuration.rb', line 24

def to_options
  all = [host].concat(hosts).compact.reject(&:empty?)
  self.hosts = []
  self.host = all.join(',') unless all.empty?
  self.marshal_dump.dup.tap { |hash| hash.delete(:hosts) }
end