Sha256: 066c399d1d1e504b3e4111a2c5d9288aa4d03cb0b7e0ae450e3d4c9e4b6491d0

Contents?: true

Size: 382 Bytes

Versions: 5

Compression:

Stored size: 382 Bytes

Contents

require 'attached/storage/s3'

module Attached
  module Storage
    
    # Create a storage object given a medium and credentials.
    #
    # Usage:
    #
    #   Attached::Storage.medium(s3)
    
    def self.storage(medium = :s3, credentials = nil)
      
      case medium
      when :s3 then return Attached::Storage::S3.new(credentials)
      end
      
    end
    
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
attached-0.1.4 lib/attached/storage.rb
attached-0.1.3 lib/attached/storage.rb
attached-0.1.2 lib/attached/storage.rb
attached-0.1.1 lib/attached/storage.rb
attached-0.1.0 lib/attached/storage.rb