Sha256: fe1caa699992f2b534758d0d39386f143c75522714965c8af70452ed0eac115b

Contents?: true

Size: 868 Bytes

Versions: 2

Compression:

Stored size: 868 Bytes

Contents

module Hydra::Works
  module Characterization
    extend ActiveSupport::Autoload

    class << self
      attr_accessor :mapper
      def mapper
        @mapper ||= mapper_defaults
      end

      def mapper_defaults
        { audio_duration: :duration, audio_sample_rate: :sample_rate, exif_tool_version: :exif_version,
          file_author: :creator, file_language: :language, file_mime_type: :has_mime_type,
          video_audio_sample_rate: :sample_rate, video_duration: :duration, video_height: :height,
          video_sample_rate: :sample_rate, video_width: :width }
      end
    end

    autoload :FitsDatastream, 'hydra/works/characterization/fits_datastream.rb'

    autoload_under 'schema' do
      autoload :AudioSchema
      autoload :BaseSchema
      autoload :DocumentSchema
      autoload :ImageSchema
      autoload :VideoSchema
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
hydra-works-0.11.0 lib/hydra/works/characterization.rb
hydra-works-0.10.0 lib/hydra/works/characterization.rb