Class: Box::NullFile

Inherits:
File
  • Object
show all
Defined in:
app/services/box/file.rb

Instance Attribute Summary

Attributes inherited from File

#etag, #file, #id, #name, #type

Instance Method Summary collapse

Methods inherited from File

null_file

Constructor Details

#initializeNullFile

Returns a new instance of NullFile


43
44
45
46
47
48
49
50
# File 'app/services/box/file.rb', line 43

def initialize
  boxr_mash = BoxrMash.new
  boxr_mash[:etag] = 0
  boxr_mash[:id] = 0
  boxr_mash[:name] = 'NullFile'
  boxr_mash[:type] = 'file'
  super(boxr_mash)
end

Instance Method Details

#contentObject


52
53
54
# File 'app/services/box/file.rb', line 52

def content
  ''
end