Class: CloudFile::Local

Inherits:
Service show all
Defined in:
lib/cloud_file/providers/local.rb

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from Service

auth_value, #files, #open, #read_format, register, register_converter, uri_format

Class Method Details

.for_user(user) ⇒ Object



14
15
16
# File 'lib/cloud_file/providers/local.rb', line 14

def for_user(user)
  new
end

Instance Method Details

#read(ops) ⇒ Object



6
7
8
# File 'lib/cloud_file/providers/local.rb', line 6

def read(ops)
  ::File.read ops[:file]
end

#write(ops, val) ⇒ Object



9
10
11
# File 'lib/cloud_file/providers/local.rb', line 9

def write(ops,val)
  ::File.create ops[:file],val
end