Sha256: 8a51173b12c439f1b18e315c097644e6e064b13e09b11dc00f660a4b16dfaa16
Contents?: true
Size: 326 Bytes
Versions: 3
Compression:
Stored size: 326 Bytes
Contents
module PgObjects class DbObject attr_reader :sql_query, :name, :dependencies attr_accessor :status def initialize(file_path) @name = File.basename file_path, '.*' @sql_query = File.read file_path @dependencies = Parser.fetch_dependencies @sql_query @status = :pending end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
pg_objects-0.2.4 | lib/pg_objects/db_object.rb |
pg_objects-0.2.3 | lib/pg_objects/db_object.rb |
pg_objects-0.2.1 | lib/pg_objects/db_object.rb |