Class: TestData::DeterminesWhenSqlDumpWasMade
- Inherits:
-
Object
- Object
- TestData::DeterminesWhenSqlDumpWasMade
- Defined in:
- lib/test_data/determines_when_sql_dump_was_made.rb
Instance Method Summary collapse
- #call ⇒ Object
-
#initialize ⇒ DeterminesWhenSqlDumpWasMade
constructor
A new instance of DeterminesWhenSqlDumpWasMade.
Constructor Details
#initialize ⇒ DeterminesWhenSqlDumpWasMade
Returns a new instance of DeterminesWhenSqlDumpWasMade.
3 4 5 |
# File 'lib/test_data/determines_when_sql_dump_was_made.rb', line 3 def initialize @config = TestData.config end |
Instance Method Details
#call ⇒ Object
7 8 9 10 11 |
# File 'lib/test_data/determines_when_sql_dump_was_made.rb', line 7 def call if (last_dumped_at = find_last_dumped_value) Time.zone.parse(last_dumped_at) end end |