Class: Box::NullFolder

Inherits:
Folder
  • Object
show all
Defined in:
app/services/box/folder.rb

Instance Attribute Summary

Attributes inherited from Folder

#etag, #folder, #id, #name, #type

Instance Method Summary collapse

Methods inherited from Folder

null_folder

Constructor Details

#initializeNullFolder


47
48
49
50
51
52
53
54
# File 'app/services/box/folder.rb', line 47

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

Instance Method Details

#filesObject


60
61
62
# File 'app/services/box/folder.rb', line 60

def files
  []
end

#foldersObject


56
57
58
# File 'app/services/box/folder.rb', line 56

def folders
  []
end

#upload(filepath) ⇒ Object


64
65
66
# File 'app/services/box/folder.rb', line 64

def upload(filepath)
  Rails.logger.error("Box::NullFolder.upload(#{filepath})")
end