Class: NContent::SDK::Storage

Inherits:
Object
  • Object
show all
Defined in:
lib/ncontent/sdk/storage.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeStorage

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_storageObject (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