Sha256: 846fcc570f3ed1fe8587c445a5953c0cd255e8776098daaa400e5c795c0d89e4

Contents?: true

Size: 454 Bytes

Versions: 9

Compression:

Stored size: 454 Bytes

Contents

module Hydra::Works::Characterization
  module Audio
    extend ActiveSupport::Concern

    included do
      # Apply the audio schema. This will add properties defined in the schema.
      apply_schema AudioSchema, AlreadyThereStrategy

      # Update the configuration to map the parsed terms to the correct property.
      parser_mapping.merge!(audio_sample_rate: :sample_rate,
                            audio_duration: :duration)
    end
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
hydra-works-0.9.0 lib/hydra/works/models/concerns/file_set/characterization/audio.rb
hydra-works-0.8.1 lib/hydra/works/models/concerns/file_set/characterization/audio.rb
hydra-works-0.8 lib/hydra/works/models/concerns/file_set/characterization/audio.rb
hydra-works-0.7.1 lib/hydra/works/models/concerns/file_set/characterization/audio.rb
hydra-works-0.7.0 lib/hydra/works/models/concerns/file_set/characterization/audio.rb
hydra-works-0.6.0 lib/hydra/works/models/concerns/file_set/characterization/audio.rb
hydra-works-0.5.0 lib/hydra/works/models/concerns/file_set/characterization/audio.rb
hydra-works-0.4.0 lib/hydra/works/models/concerns/file_set/characterization/audio.rb
hydra-works-0.3.0 lib/hydra/works/models/concerns/file_set/characterization/audio.rb