Sha256: dbcee00b421b54081df8bfe41e56f971635e18b5c301c9324639e0d40fc38808

Contents?: true

Size: 542 Bytes

Versions: 14

Compression:

Stored size: 542 Bytes

Contents

module Analyst

  module EntityParser

    class ClassRelation
      attr_reader :type, :source, :target_class_name, :target

      def initialize(type:, source:, target_class_name:)
        @type = type
        @source = source
        @target_class_name = target_class_name
      end

      def resolve_target!(entity_list)
        unless @target = entity_list.detect{ |entity| entity.full_name == self.target_class_name }
          puts "WARNING: Couldn't find target: #{self.target_class_name}"
        end
      end

    end

  end
end

Version data entries

14 entries across 13 versions & 1 rubygems

Version Path
analyst-1.2.4 lib/analyst/association.rb
analyst-1.2.3 lib/analyst/association.rb
analyst-1.2.2 lib/analyst/association.rb
analyst-1.2.1 lib/analyst/association.rb
analyst-1.2.0 lib/analyst/association.rb
analyst-1.0.1 lib/analyst/association.rb
analyst-1.0.0 lib/analyst/association.rb
analyst-0.16.1 lib/analyst/association.rb
analyst-0.15.0 lib/analyst/association.rb
analyst-0.14.2 lib/analyst/association.rb
analyst-0.14.1 lib/analyst/association.rb
analyst-0.14.0 lib/analyst/association.rb
analyst-0.13.1 lib/analyst/entity_parser/association.rb
analyst-0.13.1 lib/analyst/fukuzatsu/entity_parser/association.rb