Sha256: b293f5b62244fb71feeeb0e904e390c6b5c391d026f03504ab521d3e1f4ff2df

Contents?: true

Size: 1.56 KB

Versions: 14

Compression:

Stored size: 1.56 KB

Contents

# frozen_string_literal: true

module TailwindDsl
  module Etl
    module RawComponents
      # Target File
      #
      # TargetFile represents each sub_file that can be built from a source file, such as HTML Component, Tailwind Config, Settings and Data Structure
      class TargetFile < TailwindDsl::Etl::Element
        attr_accessor :html_file
        attr_accessor :clean_html_file
        attr_accessor :tailwind_config_file
        attr_accessor :settings_file
        attr_accessor :data_file
        attr_accessor :model_file
        attr_accessor :astro_file

        def initialize(**args)
          @html_file = grab_arg(args, :html_file, guard: 'Missing html_file')
          @clean_html_file = grab_arg(args, :clean_html_file, guard: 'Missing clean_html_file')
          @tailwind_config_file = grab_arg(args, :tailwind_config_file, guard: 'Missing tailwind_config_file')
          @settings_file = grab_arg(args, :settings_file, guard: 'Missing settings_file')
          @data_file = grab_arg(args, :data_file, guard: 'Missing data_file')
          @model_file = grab_arg(args, :model_file) # , guard: 'Missing model_file')
          @astro_file = grab_arg(args, :astro_file, guard: 'Missing astro_file')
        end

        def to_h
          {
            html_file: html_file,
            clean_html_file: clean_html_file,
            tailwind_config_file: tailwind_config_file,
            settings_file: settings_file,
            data_file: data_file,
            model_file: model_file,
            astro_file: astro_file
          }
        end
      end
    end
  end
end

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
tailwind_dsl-0.0.32 lib/tailwind_dsl/etl/raw_components/schema/target_file.rb
tailwind_dsl-0.0.31 lib/tailwind_dsl/etl/raw_components/schema/target_file.rb
tailwind_dsl-0.0.30 lib/tailwind_dsl/etl/raw_components/schema/target_file.rb
tailwind_dsl-0.0.29 lib/tailwind_dsl/etl/raw_components/schema/target_file.rb
tailwind_dsl-0.0.28 lib/tailwind_dsl/etl/raw_components/schema/target_file.rb
tailwind_dsl-0.0.27 lib/tailwind_dsl/etl/raw_components/schema/target_file.rb
tailwind_dsl-0.0.26 lib/tailwind_dsl/etl/raw_components/schema/target_file.rb
tailwind_dsl-0.0.25 lib/tailwind_dsl/etl/raw_components/schema/target_file.rb
tailwind_dsl-0.0.24 lib/tailwind_dsl/etl/raw_components/schema/target_file.rb
tailwind_dsl-0.0.23 lib/tailwind_dsl/etl/raw_components/schema/target_file.rb
tailwind_dsl-0.0.22 lib/tailwind_dsl/etl/raw_components/schema/target_file.rb
tailwind_dsl-0.0.21 lib/tailwind_dsl/etl/raw_components/schema/target_file.rb
tailwind_dsl-0.0.20 lib/tailwind_dsl/etl/raw_components/schema/target_file.rb
tailwind_dsl-0.0.19 lib/tailwind_dsl/etl/raw_components/schema/target_file.rb