aboutsummaryrefslogblamecommitdiffstats
path: root/lib/active_file/site.rb
blob: 2a9043567c757cf05912408d456d0e40fce92acb (plain) (tree)
1
2
3
4
5
6
7
8
9
10
                                                            



                      
                       
                             


                   
                             


                 
                             


                  
                             


              
                             


                   
                             


     
                      
                             

     
                      
                             
     
   
 
                        
   
# Abstract class serving as an interface for concrete sites.
class ActiveFile::Site
  def initialize
  end

  def upload(key, data)
    raise NotImplementedError
  end

  def download(key)
    raise NotImplementedError
  end

  def delete(key)
    raise NotImplementedError
  end

  def exists?(key)
    raise NotImplementedError
  end

  def url(key)
    raise NotImplementedError
  end

  def checksum(key)
    raise NotImplementedError
  end


  def copy(from:, to:)
    raise NotImplementedError
  end

  def move(from:, to:)
    raise NotImplementedError
  end
end

module ActiveFile::Sites
end