Class: Neofiles::FileChunk

Inherits:
Object
  • Object
show all
Includes:
Mongoid::Document
Defined in:
app/models/neofiles/file_chunk.rb

Overview

Model for storing portion of bytes from particular Neofiles::File. Has only two fields: the bytes string #data and sequence number #n

Instance Method Summary collapse

Instance Method Details

#to_sObject



15
16
17
# File 'app/models/neofiles/file_chunk.rb', line 15

def to_s
  data.data
end