Method: SwiftClient#initialize
- Defined in:
- lib/swift_client.rb
#initialize(options = {}) ⇒ SwiftClient
Returns a new instance of SwiftClient.
31 32 33 34 35 36 37 38 |
# File 'lib/swift_client.rb', line 31 def initialize( = {}) raise(OptionError, "Setting expires_in connection wide is deprecated") if [:expires_in] self. = self.cache_store = [:cache_store] || SwiftClient::NullCache.new authenticate end |