Class: CloudFile::File

Inherits:
Object show all
Includes:
FromHash
Defined in:
lib/cloud_file/file.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#locObject

Returns the value of attribute loc.



12
13
14
# File 'lib/cloud_file/file.rb', line 12

def loc
  @loc
end

#serviceObject

Returns the value of attribute service.



12
13
14
# File 'lib/cloud_file/file.rb', line 12

def service
  @service
end

Instance Method Details

#<<(*args) ⇒ Object



20
21
22
# File 'lib/cloud_file/file.rb', line 20

def <<(*args)
  write(*args)
end

#readObject



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

def read
  service.read(loc)
end

#read_format(format) ⇒ Object



24
25
26
# File 'lib/cloud_file/file.rb', line 24

def read_format(format)
  service.read_format(format,loc)
end

#write(val) ⇒ Object



17
18
19
# File 'lib/cloud_file/file.rb', line 17

def write(val)
  service.write(loc,val)
end