class Duracloud::ContentManifest

Public Class Methods

find(**kwargs) click to toggle source
# File lib/duracloud/content_manifest.rb, line 11
def self.find(**kwargs)
  new(**kwargs).tap do |manifest|
    manifest.content
  end
end

Public Instance Methods

content() click to toggle source
# File lib/duracloud/content_manifest.rb, line 17
def content
  @content ||= Content.new(space_id: space_id, content_id: manifest_id, store_id: store_id).tap do |c|
    c.load_properties
  end
end
source() click to toggle source
# File lib/duracloud/content_manifest.rb, line 23
def source
  @source ||= Source.new(self)
end
xml() click to toggle source
# File lib/duracloud/content_manifest.rb, line 27
def xml
  @xml ||= content.download.body
end

Protected Instance Methods

method_missing(name, *args, &block) click to toggle source
Calls superclass method
# File lib/duracloud/content_manifest.rb, line 33
def method_missing(name, *args, &block)
  if content.respond_to?(name)
    content.send(name, *args, &block)
  else
    super
  end
end