Class: CloudFile::File
- Includes:
- FromHash
- Defined in:
- lib/cloud_file/file.rb
Instance Attribute Summary collapse
-
#loc ⇒ Object
Returns the value of attribute loc.
-
#service ⇒ Object
Returns the value of attribute service.
Instance Method Summary collapse
Instance Attribute Details
#loc ⇒ Object
Returns the value of attribute loc.
12 13 14 |
# File 'lib/cloud_file/file.rb', line 12 def loc @loc end |
#service ⇒ Object
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 |
#read ⇒ Object
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 |