Class: NContent::SDK::Storage
- Inherits:
-
Object
- Object
- NContent::SDK::Storage
- Defined in:
- lib/ncontent/sdk/storage.rb
Instance Attribute Summary collapse
-
#aws_storage ⇒ Object
readonly
Returns the value of attribute aws_storage.
Instance Method Summary collapse
-
#initialize ⇒ Storage
constructor
A new instance of Storage.
Constructor Details
#initialize ⇒ Storage
Returns a new instance of Storage.
10 11 12 13 14 15 |
# File 'lib/ncontent/sdk/storage.rb', line 10 def initialize @aws_storage ||= Fog::Storage.new \ provider: ::NContent::SDK.config.bucket_provider, aws_access_key_id: ::NContent::SDK.config.bucket_api_key, aws_secret_access_key: ::NContent::SDK.config.bucket_api_secret end |
Instance Attribute Details
#aws_storage ⇒ Object (readonly)
Returns the value of attribute aws_storage.
8 9 10 |
# File 'lib/ncontent/sdk/storage.rb', line 8 def aws_storage @aws_storage end |