Class: Sharepoint::FileVersion
- Inherits:
-
Object
- Object
- ObjectProperties
- Object
- Sharepoint::FileVersion
- Includes:
- Type
- Defined in:
- lib/sharepoint-files.rb
Instance Attribute Summary
Attributes inherited from Object
Attributes inherited from ObjectProperties
Instance Method Summary collapse
-
#creator ⇒ Object
created_by is taken an I can’t seem to override it.
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
#creator ⇒ Object
created_by is taken an I can’t seem to override it.
71 72 73 74 75 76 77 78 |
# File 'lib/sharepoint-files.rb', line 71 def creator _, number, library_path = url.split('/', 3) server_path = URI::encode("/#{site.name}/#{library_path}").gsub(/'/, '%27%27') @site.query( :get, "GetFileByServerRelativeUrl('#{server_path}')/Versions(#{number})/CreatedBy" ) end |