class RainbowStorage::Adapters::AbstractAdapter

Attributes

config[RW]

Public Class Methods

new(config) click to toggle source
# File lib/rainbow_storage/adapters/abstract_adapter.rb, line 6
def initialize(config)
  @config = config
  post_initialize
end

Public Instance Methods

delete(path) click to toggle source
# File lib/rainbow_storage/adapters/abstract_adapter.rb, line 19
def delete(path)
  fail NotImplementedError
end
get(path) click to toggle source
# File lib/rainbow_storage/adapters/abstract_adapter.rb, line 11
def get(path)
  fail NotImplementedError
end
public_url(path) click to toggle source
# File lib/rainbow_storage/adapters/abstract_adapter.rb, line 23
def public_url(path)
  fail NotImplementedError
end
put(path, data) click to toggle source
# File lib/rainbow_storage/adapters/abstract_adapter.rb, line 15
def put(path, data)
  fail NotImplementedError
end

Private Instance Methods

post_initialize() click to toggle source

Hook-method to add custom initialization logic to adapter

# File lib/rainbow_storage/adapters/abstract_adapter.rb, line 30
def post_initialize
end