Method: ActiveCMIS::Document#working_copy?

Defined in:
lib/active_cmis/document.rb

#working_copy?Boolean

Returns:

  • (Boolean)


138
139
140
141
142
143
# File 'lib/active_cmis/document.rb', line 138

def working_copy?
  return false if key.nil?

  # NOTE: This may not be a sufficient condition, but according to the spec it should be
  !data.xpath("at:link[@rel = 'via']", NS::COMBINED).empty?
end