Sha256: 10518844563de3cdf20497611299732c1f230359a4bcfa14e32a479fbc93cc17

Contents?: true

Size: 614 Bytes

Versions: 1

Compression:

Stored size: 614 Bytes

Contents

require "abstract"
require "cloud_job_observable"

module CloudJobBase
    
    class InternalStorageHandler
        include CloudJobBaseObservable
        
        def self.instance
            Mutex.new.synchronize {
                if !(defined? @@instance)
                    @@instance = new
                    @@instance.init_connection
                end
            }
            return @@instance
        end
        
        private_class_method :new

        abstract_method :init_connection
        abstract_method "file_path",:put_file
        abstract_method "file_url",:read_file
    end
    
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
cloud_job_base-0.1.0 lib/cloud_storage_handler.rb