Class: CmisServer::DocumentObject

Inherits:
CmisObject show all
Defined in:
lib/cmis_server/document_object.rb

Instance Attribute Summary collapse

Attributes inherited from CmisObject

#properties, #secondary_types, #type

Instance Method Summary collapse

Methods inherited from CmisObject

#add_secondary_type, #all_property_definitions, #copy_properties_values_of, #has_secondary_type?, #remove_secondary_type, #save, #to_renderable_object, #update_properties

Constructor Details

#initialize(type:, properties: {}) ⇒ DocumentObject

Returns a new instance of DocumentObject.

Raises:



6
7
8
9
# File 'lib/cmis_server/document_object.rb', line 6

def initialize(type:, properties: {})
  raise InvalidType unless type.base_id == 'cmis:document'
  super
end

Instance Attribute Details

#content_streamObject

Returns the value of attribute content_stream.



4
5
6
# File 'lib/cmis_server/document_object.rb', line 4

def content_stream
  @content_stream
end