Sha256: e1d2ac0b7692fc3445718b7c3ccef0e9d58f5ef9aedbe15f5a02507c71ef4cdb

Contents?: true

Size: 383 Bytes

Versions: 7

Compression:

Stored size: 383 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.medium(storage = :s3, credentials = nil)
      
      case storage
      when :s3 then return Attached::Storage::S3.new(credentials)
      end
      
    end
    
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
attached-0.0.9 lib/attached/storage.rb
attached-0.0.8 lib/attached/storage.rb
attached-0.0.7 lib/attached/storage.rb
attached-0.0.6 lib/attached/storage.rb
attached-0.0.5 lib/attached/storage.rb
attached-0.0.4 lib/attached/storage.rb
attached-0.0.3 lib/attached/storage.rb