Method: SwiftClient#initialize

Defined in:
lib/swift_client.rb

#initialize(options = {}) ⇒ SwiftClient

Returns a new instance of SwiftClient.

Raises:



31
32
33
34
35
36
37
38
# File 'lib/swift_client.rb', line 31

def initialize(options = {})
  raise(OptionError, "Setting expires_in connection wide is deprecated") if options[:expires_in]

  self.options = options
  self.cache_store = options[:cache_store] || SwiftClient::NullCache.new

  authenticate
end