lib/algolia/transport/stateful_host.rb in algolia-3.0.0.beta.8 vs lib/algolia/transport/stateful_host.rb in algolia-3.0.0.beta.9

- old
+ new

@@ -11,16 +11,16 @@ # @option options [DateTime] :last_use last usage date # @option options [Integer] :retry_count number of retries # @option options [Boolean] :up host status # def initialize(url, opts = {}) - @url = url - @protocol = opts[:protocol] || 'https://' - @port = opts[:port] - @accept = opts[:accept] || (READ | WRITE) - @last_use = opts[:last_use] || Time.now.utc + @url = url + @protocol = opts[:protocol] || "https://" + @port = opts[:port] + @accept = opts[:accept] || (READ | WRITE) + @last_use = opts[:last_use] || Time.now.utc @retry_count = opts[:retry_count] || 0 - @up = opts.key?(:up) ? opts[:up] : true + @up = opts.key?(:up) ? opts[:up] : true end end end end