lib/stream/client.rb in stream-ruby-2.6.0 vs lib/stream/client.rb in stream-ruby-2.6.1
- old
+ new
@@ -57,14 +57,14 @@
@api_secret = api_secret
@app_id = app_id
@signer = Stream::Signer.new(api_secret)
@client_options = {
- api_version: opts.fetch(:api_version, 'v1.0'),
- location: opts.fetch(:location, nil),
- default_timeout: opts.fetch(:default_timeout, 3),
api_key: @api_key,
- api_hostname: opts.fetch(:api_hostname, 'stream-io-api.com')
+ api_version: opts[:api_version] || 'v1.0',
+ location: opts[:location],
+ default_timeout: opts[:default_timeout] || 3,
+ api_hostname: opts[:api_hostname] || 'stream-io-api.com'
}
end
# Creates a feed instance
#