Add method for checking if upload can be resumed
This commit is contained in:
parent
e88dabaf4c
commit
000fedfbfb
|
@ -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