class MultiSync::RemoteResource

Public Instance Methods

body() click to toggle source
# File lib/multi_sync/resources/remote_resource.rb, line 7
def body
  file.body
end
determine_content_length() click to toggle source
# File lib/multi_sync/resources/remote_resource.rb, line 25
def determine_content_length
  file.content_length
end
determine_content_type() click to toggle source
# File lib/multi_sync/resources/remote_resource.rb, line 21
def determine_content_type
  file.content_type
end
determine_etag() click to toggle source
# File lib/multi_sync/resources/remote_resource.rb, line 11
def determine_etag
  file.etag
rescue NoMethodError # Fog::Storage::Local::File's don't have an etag method :(
  Digest::MD5.hexdigest(File.read(path_with_root))
end
determine_mtime() click to toggle source
# File lib/multi_sync/resources/remote_resource.rb, line 17
def determine_mtime
  file.last_modified
end