Sha256: e75abd7075957b1d940ed3c10d99eeca1c4ddc4ccdea096e7f703b27399e9305

Contents?: true

Size: 800 Bytes

Versions: 1

Compression:

Stored size: 800 Bytes

Contents

# frozen_string_literal: true

require 'dry-struct'
require 'dry-types'

module Assembly
  class ContentMetadata
    # Types for the configuration
    module Types
      include Dry.Types()
    end

    # Represents a configuration for generating the content metadata
    class Config < Dry::Struct
      STYLES = %w[image file book map 3d document webarchive-seed].freeze
      attribute :auto_labels, Types::Strict::Bool.default(true)
      attribute :flatten_folder_structure, Types::Strict::Bool.default(false)
      attribute :add_file_attributes, Types::Strict::Bool.default(false)
      attribute :add_exif, Types::Strict::Bool.default(false)
      attribute :file_attributes, Types::Strict::Hash.default({}.freeze)
      attribute :type, Types::Strict::String.enum(*STYLES)
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
assembly-objectfile-1.10.1 lib/assembly-objectfile/content_metadata/config.rb