Sha256: 177c572c8f113f9c26b11d365f09ad808e4661cf9c9080981a030d1dce1c201c

Contents?: true

Size: 286 Bytes

Versions: 7

Compression:

Stored size: 286 Bytes

Contents

# frozen_string_literal: true

module Thermos
  class Dependency
    attr_reader :model, :path, :klass, :table

    def initialize(model:, ref:, path: nil)
      @model = model
      @path = path
      @table = ref.table_name
      @klass = ref.class_name.constantize
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
thermos-1.0.2 lib/thermos/dependency.rb
thermos-1.0.1 lib/thermos/dependency.rb
thermos-1.0.0 lib/thermos/dependency.rb
thermos-0.6.0 lib/thermos/dependency.rb
thermos-0.5.2 lib/thermos/dependency.rb
thermos-0.5.1 lib/thermos/dependency.rb
thermos-0.5.0 lib/thermos/dependency.rb