Sha256: 65ac1af788984b1f01481747dff967bd52ecd1e4563c5b89e2af00248dde4367

Contents?: true

Size: 593 Bytes

Versions: 1

Compression:

Stored size: 593 Bytes

Contents

require 'active_fedora'
require 'bagit'
require 'mime-types'

require 'hybag/version'
require 'hybag/baggable'
require 'hybag/validator'
require 'hybag/bag_writer'
require 'hybag/ingester'

module Hybag
  def self.ingest(bag)
    Hybag::Ingester.new(bag).ingest
  end

  # Error Classes
  class UndiscoverableModelName < StandardError
    def initialize(bag)
      super("Unable to determine model from bag at #{bag.bag_dir}")
    end
  end
  class InvalidBaggable < StandardError
    def initialize(object)
      super("#{object} requested to be bagged, but it is invalid")
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
hybag-0.0.11 lib/hybag.rb