Sha256: d3c2d7f65f5d73b95b78474fb2f39281b3288b33796eac369736a7f3adc196b1

Contents?: true

Size: 860 Bytes

Versions: 5

Compression:

Stored size: 860 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: :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 :FitsDocument, 'hydra/works/characterization/fits_document.rb'

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

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
hydra-works-0.17.0 lib/hydra/works/characterization.rb
hydra-works-0.16.0 lib/hydra/works/characterization.rb
hydra-works-0.15.0 lib/hydra/works/characterization.rb
hydra-works-0.14.0 lib/hydra/works/characterization.rb
hydra-works-0.13.0 lib/hydra/works/characterization.rb