Class: TestData::DeterminesWhenSqlDumpWasMade

Inherits:
Object
  • Object
show all
Defined in:
lib/test_data/determines_when_sql_dump_was_made.rb

Instance Method Summary collapse

Constructor Details

#initializeDeterminesWhenSqlDumpWasMade

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

#callObject



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