Class: ConnectorsSdk::SharePoint::Adapter
Defined Under Namespace
Classes: FileGraphItem, FolderGraphItem, PackageGraphItem
Class Method Summary
collapse
es_document_from_configured_object_base, extension_for_file, fields_to_preserve, generate_id_helpers, mime_type_for_file, normalize_date, normalize_enum, normalize_path, strip_file_extension, url_to_path
Class Method Details
.es_document_from_file(file) ⇒ Object
22
23
24
|
# File 'lib/connectors_sdk/share_point/adapter.rb', line 22
def self.es_document_from_file(file)
FileGraphItem.new(file).to_es_document
end
|
.es_document_from_folder(folder) ⇒ Object
26
27
28
|
# File 'lib/connectors_sdk/share_point/adapter.rb', line 26
def self.es_document_from_folder(folder)
FolderGraphItem.new(folder).to_es_document
end
|
.es_document_from_package(package) ⇒ Object
30
31
32
|
# File 'lib/connectors_sdk/share_point/adapter.rb', line 30
def self.es_document_from_package(package)
PackageGraphItem.new(package).to_es_document
end
|