Class: CmisServer::DocumentObject
- Inherits:
-
CmisObject
- Object
- CmisObject
- CmisServer::DocumentObject
- Defined in:
- lib/cmis_server/document_object.rb
Instance Attribute Summary collapse
-
#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, #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
#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 |