Class: Openstack::Client
- Inherits:
-
Object
- Object
- Openstack::Client
- Includes:
- ActiveModel::Model
- Defined in:
- lib/openstack/client.rb,
lib/openstack/client/storage.rb,
lib/openstack/client/authenticator.rb,
lib/openstack/client/storage/get_object.rb,
lib/openstack/client/storage/put_object.rb,
lib/openstack/client/storage/list_objects.rb,
lib/openstack/client/authenticator/request.rb,
lib/openstack/client/storage/delete_object.rb,
lib/openstack/client/storage/object_store_url.rb,
lib/openstack/client/storage/bulk_delete_objects.rb,
lib/openstack/client/storage/get_object_by_range.rb,
lib/openstack/client/storage/create_temporary_uri.rb,
lib/openstack/client/storage/show_object_metadata.rb
Overview
:reek:IrresponsibleModule
Defined Under Namespace
Classes: Authenticator, Storage
Instance Attribute Summary collapse
-
#cache ⇒ Object
readonly
Returns the value of attribute cache.
-
#password ⇒ Object
readonly
Returns the value of attribute password.
-
#username ⇒ Object
readonly
Returns the value of attribute username.
Instance Method Summary collapse
- #authenticator ⇒ Object
-
#initialize(username:, password:, cache: Rails.cache) ⇒ Client
constructor
A new instance of Client.
- #storage(container:, region:) ⇒ Object
Constructor Details
#initialize(username:, password:, cache: Rails.cache) ⇒ Client
Returns a new instance of Client.
16 17 18 19 20 |
# File 'lib/openstack/client.rb', line 16 def initialize(username:, password:, cache: Rails.cache) @username = username @password = password @cache = cache end |
Instance Attribute Details
#cache ⇒ Object (readonly)
Returns the value of attribute cache.
8 9 10 |
# File 'lib/openstack/client.rb', line 8 def cache @cache end |
#password ⇒ Object (readonly)
Returns the value of attribute password.
8 9 10 |
# File 'lib/openstack/client.rb', line 8 def password @password end |
#username ⇒ Object (readonly)
Returns the value of attribute username.
8 9 10 |
# File 'lib/openstack/client.rb', line 8 def username @username end |
Instance Method Details
#authenticator ⇒ Object
22 23 24 25 26 27 28 |
# File 'lib/openstack/client.rb', line 22 def authenticator @authenticator ||= Authenticator.new( username: username, password: password, cache: cache ) end |