Class: SwiftStorage::Configuration
- Inherits:
-
Object
- Object
- SwiftStorage::Configuration
- Defined in:
- lib/swift_storage/configuration.rb
Instance Attribute Summary collapse
-
#auth_method ⇒ Object
Returns the value of attribute auth_method.
-
#auth_version ⇒ Object
Returns the value of attribute auth_version.
-
#authtenant_type ⇒ Object
Returns the value of attribute authtenant_type.
-
#endpoint ⇒ Object
Returns the value of attribute endpoint.
-
#password ⇒ Object
Returns the value of attribute password.
-
#retries ⇒ Object
Returns the value of attribute retries.
-
#ssl_verify ⇒ Object
Returns the value of attribute ssl_verify.
-
#temp_url_key ⇒ Object
Returns the value of attribute temp_url_key.
-
#tenant ⇒ Object
Returns the value of attribute tenant.
-
#username ⇒ Object
Returns the value of attribute username.
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize ⇒ Configuration
Returns a new instance of Configuration.
7 8 9 10 11 12 13 14 15 16 17 18 19 |
# File 'lib/swift_storage/configuration.rb', line 7 def initialize @auth_version = ENV['SWIFT_STORAGE_AUTH_VERSION'] || '1.0' @ssl_verify = true @tenant = ENV['SWIFT_STORAGE_TENANT'] @username = ENV['SWIFT_STORAGE_USERNAME'] @password = ENV['SWIFT_STORAGE_PASSWORD'] @endpoint = ENV['SWIFT_STORAGE_ENDPOINT'] @temp_url_key = ENV['SWIFT_STORAGE_TEMP_URL_KEY'] @retries = 3 @auth_method = :password @authtenant_type = 'tenantName' # `tenantName` or `tenantId` end |
Instance Attribute Details
#auth_method ⇒ Object
Returns the value of attribute auth_method.
3 4 5 |
# File 'lib/swift_storage/configuration.rb', line 3 def auth_method @auth_method end |
#auth_version ⇒ Object
Returns the value of attribute auth_version.
3 4 5 |
# File 'lib/swift_storage/configuration.rb', line 3 def auth_version @auth_version end |
#authtenant_type ⇒ Object
Returns the value of attribute authtenant_type.
3 4 5 |
# File 'lib/swift_storage/configuration.rb', line 3 def authtenant_type @authtenant_type end |
#endpoint ⇒ Object
Returns the value of attribute endpoint.
3 4 5 |
# File 'lib/swift_storage/configuration.rb', line 3 def endpoint @endpoint end |
#password ⇒ Object
Returns the value of attribute password.
3 4 5 |
# File 'lib/swift_storage/configuration.rb', line 3 def password @password end |
#retries ⇒ Object
Returns the value of attribute retries.
3 4 5 |
# File 'lib/swift_storage/configuration.rb', line 3 def retries @retries end |
#ssl_verify ⇒ Object
Returns the value of attribute ssl_verify.
3 4 5 |
# File 'lib/swift_storage/configuration.rb', line 3 def ssl_verify @ssl_verify end |
#temp_url_key ⇒ Object
Returns the value of attribute temp_url_key.
3 4 5 |
# File 'lib/swift_storage/configuration.rb', line 3 def temp_url_key @temp_url_key end |
#tenant ⇒ Object
Returns the value of attribute tenant.
3 4 5 |
# File 'lib/swift_storage/configuration.rb', line 3 def tenant @tenant end |
#username ⇒ Object
Returns the value of attribute username.
3 4 5 |
# File 'lib/swift_storage/configuration.rb', line 3 def username @username end |