Class: MigrationQueries::Data
- Inherits:
-
Object
- Object
- MigrationQueries::Data
- Defined in:
- lib/migration_queries/data.rb
Overview
Data class is used to store the file path and SQL queries collected from migrations.
Instance Attribute Summary collapse
-
#file_path ⇒ Object
Returns the value of attribute file_path.
-
#sql_queries ⇒ Object
Returns the value of attribute sql_queries.
Instance Method Summary collapse
-
#initialize(file_path:) ⇒ Data
constructor
A new instance of Data.
Constructor Details
#initialize(file_path:) ⇒ Data
Returns a new instance of Data.
8 9 10 11 |
# File 'lib/migration_queries/data.rb', line 8 def initialize(file_path:) self.file_path = file_path self.sql_queries = [] end |
Instance Attribute Details
#file_path ⇒ Object
Returns the value of attribute file_path.
6 7 8 |
# File 'lib/migration_queries/data.rb', line 6 def file_path @file_path end |
#sql_queries ⇒ Object
Returns the value of attribute sql_queries.
6 7 8 |
# File 'lib/migration_queries/data.rb', line 6 def sql_queries @sql_queries end |