Class: Sharepoint::FileVersion

Inherits:
Object show all
Includes:
Type
Defined in:
lib/sharepoint-files.rb

Instance Attribute Summary

Attributes inherited from Object

#parent

Attributes inherited from ObjectProperties

#data, #site, #updated_data

Instance Method Summary collapse

Methods included from Type

#initialize

Methods inherited from Object

#copy, #destroy, #guid, #initialize, #reload, #save

Methods inherited from ObjectProperties

#add_properties, #add_property, #available_properties, #initialize

Instance Method Details

#creatorObject

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