Class: Box::Service

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

Instance Method Summary collapse

Instance Method Details

#file(path) ⇒ Object


15
16
17
# File 'app/services/box/service.rb', line 15

def file(path)
  File.new(client.file_from_path(path))
end

#folder(path) ⇒ Object


11
12
13
# File 'app/services/box/service.rb', line 11

def folder(path)
  Folder.new(client.folder_from_path(path))
end

#root_folderObject


7
8
9
# File 'app/services/box/service.rb', line 7

def root_folder
  Folder.new(id: Boxr::ROOT, name: '')
end