Class: CmisServer::DocumentObject
- Inherits:
-
CmisObject
- Object
- CmisObject
- CmisServer::DocumentObject
- Defined in:
- lib/cmis_server/document_object.rb
Instance Attribute Summary collapse
-
#cmis_object_id ⇒ Object
Returns the value of attribute cmis_object_id.
-
#content_stream ⇒ Object
Returns the value of attribute content_stream.
Attributes inherited from CmisObject
#properties, #secondary_types, #type
Instance Method Summary collapse
-
#initialize(type:, properties: {}) ⇒ DocumentObject
constructor
A new instance of DocumentObject.
Methods inherited from CmisObject
#add_secondary_type, #all_property_definitions, #cmis_created_by, #cmis_creation_date, #cmis_description, #cmis_last_modification_date, #cmis_name, #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.
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
#cmis_object_id ⇒ Object
Returns the value of attribute cmis_object_id.
4 5 6 |
# File 'lib/cmis_server/document_object.rb', line 4 def cmis_object_id @cmis_object_id end |
#content_stream ⇒ Object
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 |