Sha256: 7cce56d83b7abd0b63f2316d0f242b1a54134278cc4dde32803d1df1797bab4a
Contents?: true
Size: 775 Bytes
Versions: 2
Compression:
Stored size: 775 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].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
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
assembly-objectfile-1.9.0 | lib/assembly-objectfile/content_metadata/config.rb |
assembly-objectfile-1.8.4 | lib/assembly-objectfile/content_metadata/config.rb |