Class: Sharepoint::File
- Inherits:
-
Object
- Object
- ObjectProperties
- Object
- Sharepoint::File
- Includes:
- Type
- Defined in:
- lib/sharepoint-files.rb
Instance Attribute Summary
Attributes inherited from Object
Attributes inherited from ObjectProperties
Instance Method Summary collapse
Methods included from Type
Methods inherited from Object
#copy, #destroy, #guid, #initialize, #reload, #save
Methods inherited from ObjectProperties
#add_properties, #add_property, #available_properties, #initialize
Instance Method Details
#download_to_file(filename) ⇒ Object
57 58 59 60 61 62 |
# File 'lib/sharepoint-files.rb', line 57 def download_to_file filename content = download ::File.open filename, "w:#{content.encoding.name}" do |file| file.write content end end |