Sha256: 8d0f0cf758548f84cf94c7ddcd4701de7f967bc4f03c6385d23c1a66e7205a6c

Contents?: true

Size: 256 Bytes

Versions: 5

Compression:

Stored size: 256 Bytes

Contents

# frozen_string_literal: true

##
# Factory for DbObject
#
class PgObjects::DbObjectFactory
  include Import['parser']

  def create_instance(path, status: :new)
    db_object = PgObjects::DbObject.new(path, status, parser:)
    db_object.create
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
pg_objects-1.4.0 lib/pg_objects/db_object_factory.rb
pg_objects-1.3.3 lib/pg_objects/db_object_factory.rb
pg_objects-1.3.2 lib/pg_objects/db_object_factory.rb
pg_objects-1.3.1 lib/pg_objects/db_object_factory.rb
pg_objects-1.3.0 lib/pg_objects/db_object_factory.rb