Method: Neofiles::File#data

Defined in:
app/models/neofiles/file.rb

#dataObject

Chunks bytes concatenated, that is the whole file content.



64
65
66
67
68
69
70
71
72
# File 'app/models/neofiles/file.rb', line 64

def data
  self.class.read_data_stores.each do |store|
    begin
      return store.find(id).data
    rescue Neofiles::DataStore::NotFoundException
      next
    end
  end
end