Add method for checking if upload can be resumed
This commit is contained in:
		
							parent
							
								
									3270a47fa8
								
							
						
					
					
						commit
						016689fa7c
					
				| 
						 | 
				
			
			@ -100,6 +100,14 @@ module Google
 | 
			
		|||
        return @expired
 | 
			
		||||
      end
 | 
			
		||||
      
 | 
			
		||||
      ##
 | 
			
		||||
      # Check if upload is resumable. That is, neither complete nor expired
 | 
			
		||||
      #
 | 
			
		||||
      # @return [TrueClass, FalseClass] True if upload can be resumed
 | 
			
		||||
      def resumable?
 | 
			
		||||
        return !(self.complete? or self.expired?)
 | 
			
		||||
      end
 | 
			
		||||
      
 | 
			
		||||
      ##
 | 
			
		||||
      # Convert to an HTTP request. Returns components in order of method, URI,
 | 
			
		||||
      # request headers, and body
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue